ng serve fails if file disappears #11217
Labels
area: @angular-devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity2: inconvenient
type: bug/fix
Milestone
Bug Report or Feature Request (mark with an
x
)Area
Versions
npm: 6.0.1
ng v output:
Repro steps
The log given by the failure
Lots of errors in the form:
ERROR in ./src/app/todo/todo-routing.module.ts
Module build failed: Error: ENOENT: no such file or directory, open 'D:...\src\app\todo\todo-routing.module.ts'
Desired functionality
ng serve should compile the project.
Currently, need to break out of ng serve and start ng serve again.
Mention any other details that might be useful
This happens a lot when switching git branches. Whole directory with the new features could disapper: modules, routing modules, components. And ng serve will complain.
The text was updated successfully, but these errors were encountered: