ng serve stop watching changes after an error in typescript file
See original GitHub issueBug Report or Feature Request (mark with an x
)
- [ ] bug report -> please search issues before submitting
- [ ] feature request
Versions.
@angular/cli: 1.4.6 node: 6.10.3 os: win32 x64 @angular/animations: 4.4.4 @angular/common: 4.4.4 @angular/compiler: 4.4.4 @angular/core: 4.4.4 @angular/forms: 4.4.4 @angular/http: 4.4.4 @angular/platform-browser: 4.4.4 @angular/platform-browser-dynamic: 4.4.4 @angular/router: 4.4.4 @angular/cli: 1.4.6 @angular/compiler-cli: 4.4.4 @angular/language-service: 4.4.4 typescript: 2.3.4
Repro steps.
Make an error in ts file.
You get a message: webpack: Failed to compile.
Get rid of the error in the code.
ng serve
does not rebuild automatically.
The log given by the failure.
ERROR in events.service.ts (13,21): Cannot find name ‘Routerws’. webpack: Failed to compile.
Desired functionality.
The ng serve should detect the fixes after an error and rebuild the app like always. For now, everytime, I have an error I need to kill the process with ctr+c and retype ng serve
again.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:16
- Comments:14 (3 by maintainers)
@hiepxanh it is intended that builds fail while you have errors, but this report seems to show it will not rebuild even after the error is fixed.
This is unintended and I will investigate.