Repository navigation
Labels
area: @angular-devkit/build-angulardevkit/build-angular:dev-serverfreq1: lowOnly reported by a handful of users who observe it rarelyseverity5: regressiontype: bug/fix
Milestone
Description
🐞 Bug report
Command (mark with an x)
- new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- extract-i18n
- run
- config
- help
- version
- doc
Is this a regression?
Yes, the previous version in which this bug was not present was: v 12Description
With Angular 13 i have on Windows and Mac the Problem that the ng:serve command does not stop after i press ctrl + c.
After i press ctrl+c in the Terminal the Angular CLI still produce cli output.
🔬 Minimal Reproduction
npm start
press ctrl+c or command+c
wait a bit and see the console output in the Terminal.
🔥 Exception or Error
🌍 Your Environment
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 13.0.2
Node: 16.13.0
Package Manager: yarn 1.22.17
OS: darwin arm64
Angular: 13.0.1
... animations, cdk, common, compiler, compiler-cli, core, forms
... material, platform-browser, platform-browser-dynamic
... platform-server, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1300.2
@angular-devkit/build-angular 13.0.2
@angular-devkit/core 13.0.2
@angular-devkit/schematics 8.3.29
@angular/cli 13.0.2
@nguniversal/builders 13.0.1
@nguniversal/express-engine 13.0.1
@schematics/angular 13.0.2
rxjs 7.4.0
typescript 4.4.4
Anything else relevant?
Reacted by Johannes Normann Jensen, Sergiobop, Brandinga, Daniel Ehrhardt and Niek van Bennekom
Reacted by Brandinga
Metadata
Metadata
Assignees
Labels
area: @angular-devkit/build-angulardevkit/build-angular:dev-serverfreq1: lowOnly reported by a handful of users who observe it rarelyseverity5: regressiontype: bug/fix
Activity
alan-agius4 commentedon Nov 23, 2021
This is related/caused by sindresorhus/ora#156 and unfortunately there is no easy way to address this.
Note: the build will be cancelled, but it with a delayed.
johannesnormannjensen commentedon Nov 24, 2021
Experiencing the same thing with both build and serve.
If I try to stop the process with Ctrl + c in
phase: setupit looks like the process stopped until it suddenly reachesphase: buildingspock123 commentedon Nov 26, 2021
Same issue here. Sometimes the process doesn't die properly, so builds fail due to an ongoing ngcc process already running. I don't know if this helps but I don't recall this to be an issue in ng12.
Th3CracKed commentedon Dec 15, 2021
I experienced the same issue with
ng servedanielehrhardt commentedon Jun 18, 2022
Still present with Angular 14 and on Mac
mpumford commentedon Jun 23, 2022
Not specific to windows. Happens with
ng serveandng buildon linux as well (Ubuntu 18)For a production build the delay can be quite long so this is more than irritating.
fix(@angular-devkit/build-angular): exit dev-server when CTRL+C is pr…
fix(@angular-devkit/build-angular): exit dev-server when CTRL+C is pr…
fix(@angular-devkit/build-angular): exit dev-server when CTRL+C is pr…
fix(@angular-devkit/build-angular): exit localized build when CTRL+C …
fix(@angular-devkit/build-angular): exit localized build when CTRL+C …
fix(@angular-devkit/build-angular): exit localized builds when CTRL+C…
fix(@angular-devkit/build-angular): exit localized builds when CTRL+C…
fix(@angular-devkit/build-angular): exit localized builds when CTRL+C…
angular-automatic-lock-bot commentedon Jul 28, 2022
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.