DEV Community

emertola
emertola

Posted on

Help - Angular live reload suddenly stops

I am using VS Code as my editor. Usually, every time I hit save (Ctrl + s) it automatically compiles and live reload the browser. But now it stops, sometimes it goes back to normal without me tweaking anything. I am running the app using 'npm start' or 'npm run start' to run both the 'ng serve' and a proxy config.

Does anyone encountered this, and what is your resolution to this? Thanks

Top comments (8)

Collapse
 
devpato profile image
Pato

I love how you decided to get your questions answer here instead of stackoverflow. I spend a lot of time on SO answering angular questions, but honestly fuck the community there. People are so cocky. Question, what are you doing in the website when it stops? is it always in the same route?

Collapse
 
emertola profile image
emertola

already tried that, but AFAIK I can't post there yet until I already earned some higher level. I don't know if that's still the case, as I only read answers when I ran into some problems, LOL. but going back, I can't find answers in SO, so I posted here. The website did not stop, just the live reload no longer works. I have to ctrl+c then run the npm start again to recompile and see the changes.

Collapse
 
devpato profile image
Pato

aahhhhh i seee i seee vscode stops watching your files for change? Am I correct? I encounter that same issue a long time ago like 2 years ago. I think I changed the port and re started my server. Try that maybe.

Thread Thread
 
emertola profile image
emertola

unfortunately, that didn't work as well.

Collapse
 
emertola profile image
emertola

What I do now is stopping the terminal by Ctrl+c, then hit 'npm run start' again. But it would be better if I can take back the live reload. Anyone?

Collapse
 
izerwas profile image
iZERWAS

Hey bro did you solve that issue? im encountering the same issue right now.

Collapse
 
louis profile image
Louis Augry

Do you work with docker container ?

Collapse
 
emertola profile image
emertola

Nope