ng serve hangs on phase: emitting if no index.html file #19893
Labels
area: devkit/build-angular
devkit/build-angular:dev-server
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
🐞 Bug report
Command (mark with an
x
)Description
ng serve
command hangs for forever on:if no
index.html
file is present. This is a really confusing behaviour because it's hard to spot an issue.Our build workflow is a bit more complicated than average. We have an additional step before
ng serve
which generatessrc/index.html
(which will be consumed by Angular CLI later on).The expected behaviour would be to show an error, the same way as in
ng build
command.🔬 Minimal Reproduction
ng new test rm ./test/src/index.html ng serve
🌍 Your Environment
The text was updated successfully, but these errors were encountered: