Angular-cli: ng serve do not auto update the dist after changing source files.

Created on 22 Sep 2016  路  5Comments  路  Source: angular/angular-cli

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
    Ubuntu 14.04
  2. Versions. Please run ng --version. If there's nothing outputted, please run
    in a Terminal: node --version and paste the result here:
    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.15
    node: 6.6.0
    os: linux x64
  3. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.
    Added some components.
  4. The log given by the failure. Normally this include a stack trace and some
    more information.

The "ng serve" runs the server on port 4200 but after editing and saving the source file it do not get updated . Most time need to manually run ng build and then ng serve or need to restart ng serve

  1. Mention any other details that might be useful.

Thanks! We'll be in touch soon.

investigation

All 5 comments

I noticed when i make a new project in a folder containing white spaces in the name/path some files are missing in node-modules (970 folders)and auto update doesn't work. When creating a project in a folder without white spaces everything works fine, node-modules(979 folders). (This is on Linux mint).

@udr013 You fixed the problem for me.
The parent folder of my project has white spaces and special charecters. I removed
them all and now everything update flawlessly.
Thanks a lot !

Dupe of https://github.com/angular/angular-cli/issues/1610 then. Will look for fix there.

i have tried all the thing but nothing is going right

angular-cli: 1.0.4
node: 6.10.3
os: ubuntu 14.04 x64

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._

Was this page helpful?
0 / 5 - 0 ratings