Closed
Description
🐞 Bug report
Command (mark with an x
)
- [ ] new
- [ ] build
- [x] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Is this a regression?
NoDescription
In AppComponent the IPerson1 interface is imported by index. Probably visual studio doesn't detect references to the file and doesn't recompile the project when changing and saving the file. The interface "IPerson2" is imported directly and recompile works.
🔬 Minimal Reproduction
- Create Angular project
- Add new folder "person"
- Add file iperson1.ts to "person" folder
export interface IPerson1 {
name: string;
age: number;
}
- Add file IPerson2 to "person" folder
export interface iperson2.ts {
name: string;
age: number;
}
- Add ile index.ts to "person" folder
export * from './iperson';
export * from './iperson2';
- Add this code to AppComponent:
import { IPerson1 } from './person';
import { IPerson2 } from './person/iperson2';
person: IPerson1 = {
age: 20,
name: 'Karl'
};
person2: IPerson2 = {
age: 21,
name: 'Tomas'
};
- Start project: npm start
- Change something in iperson1.ts and save. Project is not recompiled.
- Change something in iperson2.ts and save. Project is recompiled.
🌍 Your Environment
Angular CLI: 7.3.3
Node: 10.15.1
OS: win32 x64
Angular: 7.2.6
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.13.3
@angular-devkit/build-angular 0.13.3
@angular-devkit/build-optimizer 0.13.3
@angular-devkit/build-webpack 0.13.3
@angular-devkit/core 7.3.3
@angular-devkit/schematics 7.3.3
@angular/cli 7.3.3
@ngtools/webpack 7.3.3
@schematics/angular 7.3.3
@schematics/update 0.13.3
rxjs 6.3.3
typescript 3.2.4
webpack 4.29.0
Anything else relevant?
- VSCode Version: 1.31.1
- OS Version: Windows_NT x64 10.0.17134