Closed helloaliimran closed 3 weeks ago
Are you using the vite based dev-server with ssr?
vite based dev-server
no I am using simple VS Code compiler, and yes SSR is enable.
I'm not entirely sure what you mean by "VS Code compiler" in this context. You can either be using the Webpack or Vite based dev-server. Given that you're using SSR and encountering this issue, it's probable that you're working with the Vite dev server.
This is a known issue in this case, and is appears to be caused zone.js
. As a workaround, you can use q + <enter>
.
//cc @JiaLiPassion
Encountering the same issue for the past couple of weeks... (Angular 18.2 with Vite/SSR, WSL shell)
ng serve
=> Ctrl + C
sometimes works, and oftentimes stops working; especially when there's a console log.
app.component.ts
→ constructor() { console.log('hello'); }
ng serve
hello
will be printed to the terminal, and after that Ctrl + C
doesn't work
Ctrl + D
or q + <enter>
work.
I have the same problem
same problem here, initially thought taking place only in vs code but however same using external terminal.
If you just serve and then ctrl+c
all works, tho breaks after you console.log
Command
serve
Is this a regression?
The previous version in which this bug was not present was
17
Description
The Ctrl+C command is not working to stop the application from the terminal.
Minimal Reproduction
I face this problem after updating angular material : ng update @angular/material
Exception or Error
No response
Your Environment
Anything else relevant?
No response