-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ng build and ng serve not detecting file changes #2356
Comments
Same here. Since update to 1.0.0-beta.15 it doesn't work. It used to work with beta.14. |
Didn't work for me in beta 14 either. On Tue, 27 Sep 2016 13:52 nehemia, notifications@github.com wrote:
|
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(978 folders). (This is on Linux mint). |
See #1610 (comment) |
I'm using agular cli to create and serve a project, after editing a file it doesnot auto update the server, i have to restart the ng serve again. I tried ng serve and ng build --watch , both not working Output of ng -v angular-cli: 1.0.0-beta.18 |
just remove spaces and special characters from all root directories of project directory(inclusive). |
I'm using agular cli to create and serve a project, after editing a file it doesnot auto update the server, i have to restart the ng serve again. I tried ng serve and ng build --watch , both not working re install npm install , also i checked the folder names but still not working |
No problems here with ng build --watch
|
For those who use windows: It is a bug in the latest CLI. And it should work fine |
I faced with the same problem on Ubuntu 16.04 and angular CLI 1.0.0-beta.30 The problem was related with Inotify Watches Limit on Linux.
After that I restarted my IDE (WebStorm in my case) and after that the change detection started to work. |
I am facing the same problem |
@hectorMurillo ERROR in ./src/main.ts |
Anyone finding this on Google: I encountered this issue on Ubuntu 16.04 with Angular/cli 1.0.3 while using Sublime Text 3. From reading @RPGillespie6 comment, I close all my instances of Sublime Text, ctrl + c on running ng serve. Restart ng serve and reopen Sublime Text. I modify a file and save and everything works fine. Before closing out Sublime Text I had tried restarting ng serve multiple attempts did not fix the problem. |
when i am using ng -v: what i need to do to work ng serve ? |
Thank you @ulymor for #2356 (comment) |
@kasireddie use nvm ..google on it |
@ulymor i have tried lot of ways to resolve it but your comments helped.... Thanks a lot. |
hello guys,
|
The problem is that other programs are competing for inotifies as well (VSCode, etc.) and angular-cli doesn't tell you that you are out, it just silently fails. Sometimes the solution is that you need to close another program that is using up inotifies... |
I'm having this issue not on Linux but Windows 10 machine and VS Code. |
Reporting that this is still an issue with @angular/cli: 1.7.4 on Windows 10. Angular CLI: 1.7.4 @angular/cli: 1.7.4 |
Increasing inotify watches and restarting |
|
Works me to.. |
same issue here with angular 6. I resolved it using |
Hi, |
I had the same issue working on Vagrant vm on Ubuntu 16.04 LTS.
I tried all solutions, increasing
|
Ubuntu 18.04 with Angular CLI(7.3.7). "echo 65536 | sudo tee -a /proc/sys/fs/inotify/max_user_watches" works for me as @piyarulps suggested. |
Works for me, in Linux 18.01, thanks @pgfepale |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Ubuntu 16.04
angular-cli: 1.0.0-beta.15
node: 6.6.0
os: linux x64
watchman: 4.7.0
Run either
ng build --watch
orng serve
. Change any file inside of src, no changes detected.The text was updated successfully, but these errors were encountered: