Title: ng test losing typings after retrigger · Issue #5332 · angular/angular-cli · GitHub
Open Graph Title: ng test losing typings after retrigger · Issue #5332 · angular/angular-cli
X Title: ng test losing typings after retrigger · Issue #5332 · angular/angular-cli
Description: OS? Linux (Ubuntu 16.04) Versions. @angular/cli: 1.0.0-rc.1 node: 6.10.0 os: linux x64 @angular/common: 2.4.9 @angular/compiler: 2.4.9 @angular/core: 2.4.9 @angular/forms: 2.4.9 @angular/http: 2.4.9 @angular/platform-browser: 2.4.9 @angu...
Open Graph Description: OS? Linux (Ubuntu 16.04) Versions. @angular/cli: 1.0.0-rc.1 node: 6.10.0 os: linux x64 @angular/common: 2.4.9 @angular/compiler: 2.4.9 @angular/core: 2.4.9 @angular/forms: 2.4.9 @angular/http: 2.4....
X Description: OS? Linux (Ubuntu 16.04) Versions. @angular/cli: 1.0.0-rc.1 node: 6.10.0 os: linux x64 @angular/common: 2.4.9 @angular/compiler: 2.4.9 @angular/core: 2.4.9 @angular/forms: 2.4.9 @angular/http: 2.4....
Opengraph URL: https://github.com/angular/angular-cli/issues/5332
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ng test losing typings after retrigger","articleBody":"### OS?\r\nLinux (Ubuntu 16.04)\r\n\r\n### Versions.\r\n@angular/cli: 1.0.0-rc.1\r\nnode: 6.10.0\r\nos: linux x64\r\n@angular/common: 2.4.9\r\n@angular/compiler: 2.4.9\r\n@angular/core: 2.4.9\r\n@angular/forms: 2.4.9\r\n@angular/http: 2.4.9\r\n@angular/platform-browser: 2.4.9\r\n@angular/platform-browser-dynamic: 2.4.9\r\n@angular/router: 3.4.9\r\n@angular/cli: 1.0.0-rc.1\r\n@angular/compiler-cli: 2.4.9\r\n\r\n### Repro steps.\r\n- ng new ngTest\r\n- cd ngTest\r\n- yarn\r\n- Create folder typings in src\r\n- Create file common.d.ts in src/typings with content:\r\n```\r\ndeclare module Common {\r\n export interface IAction {\r\n type: string;\r\n }\r\n}\r\n```\r\n- In app.component.ts add a constructor\r\n```\r\nconstructor() {\r\n const action: Common.IAction = { type: 'test' };\r\n}\r\n```\r\n- Running ng test once works\r\n- Saving app.component.ts (retriggering ng test) fails to find type definition, but test succeeds\r\n\r\n### The log given by the failure.\r\n```\r\nERROR in /home/tobias/projects/external/ngTest/src/app/app.component.ts (12,19): Cannot find namespace 'Common'.)\r\nChrome 56.0.2924 (Linux 0.0.0): Executed 3 of 3 SUCCESS (0.222 secs / 0.215 secs)\r\n```\r\n","author":{"url":"https://github.com/tmansson","@type":"Person","name":"tmansson"},"datePublished":"2017-03-09T13:23:42Z","url":"https://github.com/angular/angular-cli/issues/5332"}
| 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:b0de51d7-d8d7-c1f2-4656-594fc89f8222 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A832:EA06E:4B9863F:5FC1321:6B023A99 |
| html-safe-nonce | 45516431705a40db9dc207275a0ab9b434459082fd43cea6ec58dc0b5b255286 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODMyOkVBMDZFOjRCOTg2M0Y6NUZDMTMyMTo2QjAyM0E5OSIsInZpc2l0b3JfaWQiOiI3NzQ0NTc0MzMxNDU1NDIxMDgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 48f251b4454d30c6e4a9bd2a3ddb26dcef5c78533f3f13d0602eeee3b5f99be3 |
| hovercard-subject-tag | issue:213035671 |
| 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-cli/5332/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b47fcbfcaa7181f609d51791fa185d24f8abc78bf330d672191a314274d940fd/angular/angular-cli/issues/5332 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b47fcbfcaa7181f609d51791fa185d24f8abc78bf330d672191a314274d940fd/angular/angular-cli/issues/5332 |
| og:image:alt | OS? Linux (Ubuntu 16.04) Versions. @angular/cli: 1.0.0-rc.1 node: 6.10.0 os: linux x64 @angular/common: 2.4.9 @angular/compiler: 2.4.9 @angular/core: 2.4.9 @angular/forms: 2.4.9 @angular/http: 2.4.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tmansson |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width