Title: angular2.d.ts references globals-es6.d.ts but core.d.ts doesn't · Issue #5596 · angular/angular · GitHub
Open Graph Title: angular2.d.ts references globals-es6.d.ts but core.d.ts doesn't · Issue #5596 · angular/angular
X Title: angular2.d.ts references globals-es6.d.ts but core.d.ts doesn't · Issue #5596 · angular/angular
Description: as we are moving from import ... from 'angular2/angular2' to import ... from 'angular2/core' we are starting to hit typescript compiler errors like this: [DiffingTSCompiler]: Typescript found the following errors: app/sample-38.spec.ts (...
Open Graph Description: as we are moving from import ... from 'angular2/angular2' to import ... from 'angular2/core' we are starting to hit typescript compiler errors like this: [DiffingTSCompiler]: Typescript found the f...
X Description: as we are moving from import ... from 'angular2/angular2' to import ... from 'angular2/core' we are starting to hit typescript compiler errors like this: [DiffingTSCompiler]: Typesc...
Opengraph URL: https://github.com/angular/angular/issues/5596
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"angular2.d.ts references globals-es6.d.ts but core.d.ts doesn't","articleBody":"as we are moving from `import ... from 'angular2/angular2'` to `import ... from 'angular2/core'` we are starting to hit typescript compiler errors like this:\n\n```\n[DiffingTSCompiler]: Typescript found the following errors:\n app/sample-38.spec.ts (8, 32): Property 'toBe' does not exist on type 'NgMatchers'.\n app/sample-38.spec.ts (13, 35): Property 'toBe' does not exist on type 'NgMatchers'.\n app/sample-38.spec.ts (14, 37): Property 'toBe' does not exist on type 'NgMatchers'.\n node_modules/angular2/node_modules/@reactivex/rxjs/dist/cjs/CoreOperators.d.ts (21, 70): Cannot find name 'Promise'.\n node_modules/angular2/node_modules/@reactivex/rxjs/dist/cjs/CoreOperators.d.ts (74, 31): Cannot find name 'PromiseConstructor'.\n node_modules/angular2/node_modules/@reactivex/rxjs/dist/cjs/CoreOperators.d.ts (74, 54): Cannot find name 'Promise'.\n node_modules/angular2/node_modules/@reactivex/rxjs/dist/cjs/Observable.d.ts (63, 53): Cannot find name 'PromiseConstructor'.\n node_modules/angular2/node_modules/@reactivex/rxjs/dist/cjs/Observable.d.ts (63, 74): Cannot find name 'Promise'.\n node_modules/angular2/node_modules/@reactivex/rxjs/dist/cjs/Observable.d.ts (74, 38): Cannot find name 'Promise'.\n node_modules/angular2/node_modules/@reactivex/rxjs/dist/cjs/Observable.d.ts (97, 69): Cannot find name 'Promise'.\n node_modules/angular2/node_modules/@reactivex/rxjs/dist/cjs/Observable.d.ts (149, 30): Cannot find name 'PromiseConstructor'.\n node_modules/angular2/node_modules/@reactivex/rxjs/dist/cjs/Observable.d.ts (149, 53): Cannot find name 'Promise'.\n node_modules/angular2/src/core/change_detection/parser/locals.d.ts (3, 14): Cannot find name 'Map'.\n node_modules/angular2/src/core/change_detection/parser/locals.d.ts (4, 42): Cannot find name 'Map'.\n node_modules/angular2/src/core/linker/element_injector.d.ts (71, 32): Cannot find name 'Map'.\n node_modules/angular2/src/core/linker/element_injector.d.ts (73, 17): Cannot find name 'Map'.\n node_modules/angular2/src/core/linker/element_injector.d.ts (77, 184): Cannot find name 'Map'.\n node_modules/angular2/src/core/linker/element_injector.d.ts (82, 182): Cannot find name 'Map'.\n node_modules/angular2/src/core/linker/element_injector.d.ts (106, 37): Cannot find name 'Map'.\n node_modules/angular2/src/core/linker/proto_view_factory.d.ts (28, 146): Cannot find name 'Map'.\n node_modules/angular2/src/core/linker/view.d.ts (52, 144): Cannot find name 'Map'.\n node_modules/angular2/src/core/linker/view.d.ts (76, 79): Cannot find name 'Map'.\n node_modules/angular2/src/core/linker/view.d.ts (77, 73): Cannot find name 'Map'.\n node_modules/angular2/src/core/linker/view.d.ts (95, 31): Cannot find name 'Map'.\n node_modules/angular2/src/core/linker/view.d.ts (98, 18): Cannot find name 'Map'.\n node_modules/angular2/src/core/linker/view.d.ts (101, 24): Cannot find name 'Map'.\n node_modules/angular2/src/core/linker/view.d.ts (104, 162): Cannot find name 'Map'.\n node_modules/angular2/src/core/linker/view.d.ts (105, 160): Cannot find name 'Map'.\n node_modules/angular2/src/core/render/api.d.ts (289, 74): Cannot find name 'Map'.\n node_modules/angular2/src/core/zone/ng_zone.d.ts (2, 37): Cannot find name 'Zone'.\n node_modules/angular2/src/facade/collection.d.ts (1, 25): Cannot find name 'MapConstructor'.\n node_modules/angular2/src/facade/collection.d.ts (2, 25): Cannot find name 'SetConstructor'.\n node_modules/angular2/src/facade/collection.d.ts (4, 27): Cannot find name 'Map'.\n node_modules/angular2/src/facade/collection.d.ts (4, 39): Cannot find name 'Map'.\n node_modules/angular2/src/facade/collection.d.ts (7, 9): Cannot find name 'Map'.\n node_modules/angular2/src/facade/collection.d.ts (8, 30): Cannot find name 'Map'.\n node_modules/angular2/src/facade/collection.d.ts (11, 43): Cannot find name 'Map'.\n node_modules/angular2/src/facade/collection.d.ts (12, 27): Cannot find name 'Map'.\n node_modules/angular2/src/facade/collection.d.ts (14, 23): Cannot find name 'Map'.\n node_modules/angular2/src/facade/collection.d.ts (15, 25): Cannot find name 'Map'.\n node_modules/angular2/src/facade/collection.d.ts (90, 41): Cannot find name 'Set'.\n node_modules/angular2/src/facade/collection.d.ts (91, 22): Cannot find name 'Set'.\n node_modules/angular2/src/facade/collection.d.ts (92, 25): Cannot find name 'Set'.\n node_modules/angular2/src/facade/lang.d.ts (2, 22): Cannot find name 'BrowserNodeGlobal'.\n node_modules/angular2/src/facade/lang.d.ts (47, 59): Cannot find name 'Map'.\n node_modules/angular2/src/facade/promise.d.ts (1, 10): Cannot find name 'Promise'.\n node_modules/angular2/src/facade/promise.d.ts (3, 14): Cannot find name 'Promise'.\n node_modules/angular2/src/facade/promise.d.ts (8, 32): Cannot find name 'Promise'.\n node_modules/angular2/src/facade/promise.d.ts (9, 38): Cannot find name 'Promise'.\n node_modules/angular2/src/facade/promise.d.ts (10, 35): Cannot find name 'Promise'.\n node_modules/angular2/src/facade/promise.d.ts (10, 93): Cannot find name 'Promise'.\n node_modules/angular2/src/facade/promise.d.ts (11, 34): Cannot find name 'Promise'.\n node_modules/angular2/src/facade/promise.d.ts (12, 32): Cannot find name 'Promise'.\n node_modules/angular2/src/facade/promise.d.ts (12, 149): Cannot find name 'Promise'.\n node_modules/angular2/src/facade/promise.d.ts (13, 43): Cannot find name 'Promise'.\n node_modules/angular2/src/platform/browser/browser_adapter.d.ts (72, 33): Cannot find name 'Map'.\n node_modules/angular2/src/platform/dom/dom_adapter.d.ts (84, 42): Cannot find name 'Map'.\n node_modules/angular2/src/testing/matchers.d.ts (1, 37): Cannot find namespace 'jasmine'.\n```\n\nThis is because when importing from `angular2/angular`, we are pulling in `angular2.d.ts` which pulls in `globals-es6.d.ts`. However when importing from `angular2/core` we no longer pull in the `globals-es6.d.ts` file, which results in all kinds of typings missing.\n\nTo work around this, developers need to explicitly refer to this d.ts file via tripple-slash reference or via tsconfig.json. (example: https://github.com/angular/angular-cli/pull/85/files#r46653752).\n\nNote: `globals-es6.d.ts` is actually pretty problematic because it pulls in type definitions for not only es6 shims, but also jasmine, promises and bunch of other stuff. This is pretty messy and we should find a better way to do it, but that's a separate issue.\n\n// @rkirov @alexeagle @mprobst @cironunes @vsavkin \n","author":{"url":"https://github.com/IgorMinar","@type":"Person","name":"IgorMinar"},"datePublished":"2015-12-04T07:01:54Z","url":"https://github.com/angular/angular/issues/5596"}
| 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:676e0e60-83e7-19bd-da32-34d34242da5e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB64:2E124E:918A7A:BB3AB7:6B00EFC3 |
| html-safe-nonce | 768e5aa90753b66ec669d0e87991d584a0689564f1269aba8c404970945aed33 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjY0OjJFMTI0RTo5MThBN0E6QkIzQUI3OjZCMDBFRkMzIiwidmlzaXRvcl9pZCI6IjMxMDAxNzY0NTA1MzIyMDg1NzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 94ca6a221b48a9a4ede2283b8c2b0a76269e012cca151bbb9c76e0c2ae963f0a |
| hovercard-subject-tag | issue:120345964 |
| 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/5596/issue_layout |
| twitter:image | https://opengraph.githubassets.com/40041ef2edf63e98b7c2f55dcc27a6e4ca795f7ae968c7f0a306a1ce7c6e1305/angular/angular/issues/5596 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/40041ef2edf63e98b7c2f55dcc27a6e4ca795f7ae968c7f0a306a1ce7c6e1305/angular/angular/issues/5596 |
| og:image:alt | as we are moving from import ... from 'angular2/angular2' to import ... from 'angular2/core' we are starting to hit typescript compiler errors like this: [DiffingTSCompiler]: Typescript found the f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | IgorMinar |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width