-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
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
@angular/platform-browser-dynamic: 2.4.9
@angular/router: 3.4.9
@angular/cli: 1.0.0-rc.1
@angular/compiler-cli: 2.4.9
Repro steps.
- ng new ngTest
- cd ngTest
- yarn
- Create folder typings in src
- Create file common.d.ts in src/typings with content:
declare module Common {
export interface IAction {
type: string;
}
}
- In app.component.ts add a constructor
constructor() {
const action: Common.IAction = { type: 'test' };
}
- Running ng test once works
- Saving app.component.ts (retriggering ng test) fails to find type definition, but test succeeds
The log given by the failure.
ERROR in /home/tobias/projects/external/ngTest/src/app/app.component.ts (12,19): Cannot find namespace 'Common'.)
Chrome 56.0.2924 (Linux 0.0.0): Executed 3 of 3 SUCCESS (0.222 secs / 0.215 secs)
ams-itm, coryrylan, bufke and johannesjo