1

When running ng serve from the Angular CLI in development, I expect for my application to be served at a local URL with live reloading. Typically, after running ng serve and loading my app in the browser, the console shows a single [WDS] Live Reloading enabled. log entry.

The problem:

Recently the [WDS] Live Reloading enabled. log message has started being printed to the console 4 times, and evidence seems to suggest that 4 seperate processes are listening to my app's file changes. This is causing a slowdown on page reloading and some other strange activity. I am also seeing the following messages printed in my terminal during initial compilation of my app (immediately after running ng serve), which I don't remember ever seeing before.

  • 「wds」: webpack output is served from /
  • 「wds」: 404s will fallback to //index.html

None of this is preventing my app from being served locally, but it does seem to be causing a general slowdown in development.

What might be causing this? The Angular CLI is generally a "batteries included" tool, and I'm unsure how to go about debugging this problem (short of reverting a bunch of changes and walking forward slowly--which I'd rather not have to do). Any debugging tips / insight / or suggestions are appreciated!

2
  • several instances may have been running. did you quit the process with ctrl+z? you should quit with ctrl+c. you could also try restarting your computer. Commented Jun 29, 2019 at 19:05
  • @MariaMiller that's an excellent suggestion. I'm going to test right now if that's the answer, but even if it's not you should post that as an answer and I'll +1 it. Commented Jun 29, 2019 at 19:14

2 Answers 2

1

several instances may have been running. did you quit the process with ctrl+z? you should quit with ctrl+c. you could also try restarting your computer.

Sign up to request clarification or add additional context in comments.

3 Comments

It's a great suggestion, but unfortunately this is not the answer. A computer restart has done nothing to abate the issue :(
what about reinstalling the angular cli: npm install -g @angular/cli if permission errors sudo npm install -g @angular/cli
Well I don't see how that could be the problem, but, incidentally, I have already reinstalled the CLI while experiencing this problem and it didn't have an effect. At this point my best guess is the issue is being caused by 1) another dependency 2) some aspect of my angular.json file 3) some aspect of my tsconfig.json file. If I figure out what it is I'll definitely post an answer here.
0

I was able to fix this issue by upgrading my app to Angular v8. As part of the upgrade, I was able to see that neither my app's angular.json or tsconfig.json files were modified. Given that the upgrade did fix the issue, the issue must have been caused by a dependency. Upgrading to Angular v8 changed a lot of dependencies, including moving from node v8 to node v10, so I'm unsure what exactly fixed things. My best guess is that two or more angular development dependencies expected to find different versions of each other (but again, this is just a guess).

I realize this is a rather unsatisfactory answer, and I'm lucky that my external dependencies support Angular v8 at this point.

If someone else comes along with a better, more generalized answer / solution, I'll happily mark that answer as correct.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.