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?
I found a bug #7638
According to this looks like it worked in angular 5
Description
"ng serve" doesn't react on changes in d.ts files.
🔬 Minimal Reproduction
Precondition:
-
Clone repository: https://github.com/VlasovSergey/angular-ng-serbe-ignores-dts.git
-
run
npm install
-
run
ng serve
-
comment
func: () => void;
in filesrc\typings.ts
Expected: 'ng serve' runs build and shows an error becausemodule.ts
uses function func.
Actual: 'ng serve' do nothing. -
re-run
ng serve
(it shows error). -
make any change in main.ts but don't fix the error (
ng serve
rebuild project and show error correctly) -
uncomment
func: () => void;
in filesrc\typings.ts
Expected: ng serve
rebuilds the project and the error disappears.
Actual: 'ng serve' do nothing. Moreover, if I trigger ng serve
again (by changing main.ts) the error will be still here.
🌍 Your Environment
Angular CLI: 8.3.9
Node: 10.15.1
OS: win32 x64
Angular: 8.2.11
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.803.9
@angular-devkit/build-angular 0.803.9
@angular-devkit/build-optimizer 0.803.9
@angular-devkit/build-webpack 0.803.9
@angular-devkit/core 8.3.9
@angular-devkit/schematics 8.3.9
@angular/cli 8.3.9
@ngtools/webpack 8.3.9
@schematics/angular 8.3.9
@schematics/update 0.803.9
rxjs 6.4.0
typescript 3.5.3
webpack 4.39.2