angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Live reload failing with webpack 2.1.0-beta.22 , angular-cli: 1.0.0-beta.14

Open dessalines opened this issue 10 years ago • 8 comments

I've noticed ng serve isn't picking up my file changes, and I have to rerun it every time I make a save.

Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
angular-cli: 1.0.0-beta.14
node: 6.5.0
os: linux x64

dessalines avatar Sep 15 '16 16:09 dessalines

Try this: npm uninstall -g angular-cli npm cache clean npm install -g angular-cli@webpack

HamidHabib avatar Sep 15 '16 17:09 HamidHabib

Just did this, didn't fix the issue. Did changing a file work for you?

dessalines avatar Sep 15 '16 18:09 dessalines

I didnt change anything. i just run those commands and got everything up and running to (v2.0.0 latest Angular) give this a try: watchman from npm and watchman from brew are 2 different things

brew update brew install watchman

HamidHabib avatar Sep 15 '16 18:09 HamidHabib

I'm on linux. I mean, did you try changing a file to make sure its reloading webpack? I'm guessing the library is watchpack, mines on watchpack@^0.2.1.

I just tried this on two different computers BTW, and live-reload isn't working.

dessalines avatar Sep 16 '16 15:09 dessalines

I have the same problem on Xubuntu 16.04. I got the same error message and I installed watchman from source as described in https://ember-cli.com/user-guide/#watchman. The error message is gone but the live reload isn't triggered on file change.

jabaa avatar Sep 17 '16 01:09 jabaa

This issue looks similar to #1610.

osechet avatar Sep 20 '16 07:09 osechet

I fixed this by removing running rm -rf node_modules , and reinstalling angular-cli both globally and locally.

dessalines avatar Sep 21 '16 19:09 dessalines

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.