Title: Type definition conflict with jQuery TSD · Issue #5459 · angular/angular · GitHub
Open Graph Title: Type definition conflict with jQuery TSD · Issue #5459 · angular/angular
X Title: Type definition conflict with jQuery TSD · Issue #5459 · angular/angular
Description: When trying to compile a TypeScript file that imports something from angular2 (2.0.0-alpha.46) and also references the TSD type definitions for jQuery, I get the following error from the TypeScript compiler: node_modules/angular2/typings...
Open Graph Description: When trying to compile a TypeScript file that imports something from angular2 (2.0.0-alpha.46) and also references the TSD type definitions for jQuery, I get the following error from the TypeScript...
X Description: When trying to compile a TypeScript file that imports something from angular2 (2.0.0-alpha.46) and also references the TSD type definitions for jQuery, I get the following error from the TypeScript...
Mail addresses
notifications@github.com
Opengraph URL: https://github.com/angular/angular/issues/5459
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Type definition conflict with jQuery TSD","articleBody":"When trying to compile a TypeScript file that imports something from `angular2` (2.0.0-alpha.46) and also references the TSD type definitions for jQuery, I get the following error from the TypeScript compiler:\n\n```\nnode_modules/angular2/typings/angular-protractor/angular-protractor.d.ts(1679,13): error TS2403:\nSubsequent variable declarations must have the same type. Variable '$' must be of type\n'JQueryStatic', but here has type 'cssSelectorHelper'.\n```\n\nThe app itself doe not refer to Protractor in any way. The types are pulled in by Angular 2 internally, it seems.\n\nUse case: Running a hybrid Angular 1+2 app during upgrade. The Angular 1 type definitions from TSD also pull in jQuery type definitions, and I suspect they'll be commonly used during upgrades.\n\nMinimal repo that reproduces the problem: https://github.com/teropa/ng2-jquery-type-conflict\n\nSuggested fix: Don't include Protractor type definitions unless the user asks for them?\n","author":{"url":"https://github.com/teropa","@type":"Person","name":"teropa"},"datePublished":"2015-11-24T17:12:26Z","url":"https://github.com/angular/angular/issues/5459"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:997269f8-0cf7-cc8a-8493-8d25e27fa344 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA6A:6DC60:178B08C:1D99067:6B017186 |
| html-safe-nonce | 03755c0992438fd0c3188ea5f9c5eb74f3f0456b7dc269b0e456edb498ccf43e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTZBOjZEQzYwOjE3OEIwOEM6MUQ5OTA2Nzo2QjAxNzE4NiIsInZpc2l0b3JfaWQiOiIxOTQyOTI5MDY3NzQ5NzY1NTEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 445807819c8cb03e4a43aa9a77eeec6a176373304e0a8531c3217790bbd9282a |
| hovercard-subject-tag | issue:118659561 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/5459/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7310f9b761329ee156fb46f230c0a59c432804087bafc72a46e82332e02ce646/angular/angular/issues/5459 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7310f9b761329ee156fb46f230c0a59c432804087bafc72a46e82332e02ce646/angular/angular/issues/5459 |
| og:image:alt | When trying to compile a TypeScript file that imports something from angular2 (2.0.0-alpha.46) and also references the TSD type definitions for jQuery, I get the following error from the TypeScript... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | teropa |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width