Skip to content

Ng serve does not detect file changes made #10126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
owlstack opened this issue Apr 1, 2018 · 2 comments
Closed

Ng serve does not detect file changes made #10126

owlstack opened this issue Apr 1, 2018 · 2 comments

Comments

@owlstack
Copy link

owlstack commented Apr 1, 2018

I've encountered an issue with angular cli/webpack where if I make some changes in my project and save the changes but webpack doesn't compile it again automatically. I run ng serve --open, then webpack compiles usually after every change/save I make. Now, it's just stuck on the last step and never recompiles. I have to manually terminate the process then run the command again to get it to work.

Versions

Angular CLI: 1.7.3
Node: 8.11.1
OS: win32 x64
Angular:
...
Windows 10 Server (remote desktop that I connect to on my macbook pro)

Repro steps

  • Clone your angular project, set up nodejs, angular-cli and then run ng serve --open.
  • Make some code changes and save code changes
  • webpack doesn't automatically pick up the changes to recompile.

I'm having the exact same issue here:
#2389

Unfortunately, all solutions point to Linux whereas I have a windows machine.

I use Visual Studio Code for my text editor.

EDIT: I tested the same solution on my mac machine (not the windows server machine) and webpack compilation is working fine. I think it's related to running the code/environment on a windows server machine.

@owlstack owlstack closed this as completed Apr 1, 2018
@ojpbay
Copy link

ojpbay commented Oct 2, 2018

I have the same issue. If I delete the dist folder I can see this isn't getting repopulated on a change, when ng serve is running. If I stop and do a ng build obviously it works but that seems like a drag to do every time. Did you get any resolution to your Windows issue?

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants