-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng serve not detecting file changes #2389
Comments
I face the very same issue except that my angular-cli version is 1.0.0-beta.15. |
Same here on |
Maybe a duplicate of #2356 - does the path to your project folders include a space? |
@bonnici no the path doesn't have any space or special character. The path is /home/harilal/works/ng2/routing/ To my wonder after removing global angular-cli and removing the nod-modules and reinstalling after cleaning the cache it worked. I need to check whether it will work next time. |
At my side, I found the issue: the system that detects changes (inotify) can't handle so much watches by default. |
@paillave I think that's solved my issue. Now the project files gets compiled and it's updating. But i need to check after restarting the system. Last time when i reinstalled the angular-cli it's worked. BUt next day it's stopped working. I will update the issue once i have tested that also. |
@harilalinapp out of angular 2 app, many have the same issue with inotify, especially on ubuntu: http://askubuntu.com/questions/716431/inotify-max-user-watches-value-resets-on-reboot-how-to-change-it-permanently, |
@paillave Thanks for the support. I have to run the command each time at restart. Anyway it's works thanks. |
Thank you @paillave seems to be an issue on Ubuntu and the fix is
as highlighted on |
just remove spaces and special characters from all root directories of project directory(inclusive). |
@paillave thank you, works fine!! |
Same issue, No spaces to app .. here's the path : c:\dev\myapp I reinstalled node and angular a couple of time but nothing worked. |
I am having a similar issue. Changing a .html file works fine. Changing a .ts file, the compiler fires but on reload there is no change. |
Same here as @raducostea when .ts file is changed, the compiler fires, but the Hash (in terminal) is the same as before file change. I use Webstorm 2016.3.3 on Win 7 x64. Also tried to reinstall, set new project. |
Same as #4338 |
The same happens to me, the html takes the changes but the .ts does not |
I think problem is in WebStorm. Webpack watch doesn't work if the file is not saved directly. Please try turning 'Safe write' option ( Settings | Appearance & Behavior | System Settings | Use "safe write" (save changes to temporary file first)) off. After this change all works fine for me. |
It is a bug in the latest CLI. Execute the following command in your project folder: And it should work fine |
@toni8810 , thank you! |
@toni8810 thank you! |
@toni8810 Thanks! Fixed the problem. I assume we'll want to remove that specific version once the bug is fixed in the next release? Thanks again! |
This is fixed for me in the @angular/cli latest release. |
@raducostea thanks! |
I've noticed a strange case sensitivity bug. |
I checked the latest (beta 30) release and it doesn't pick up changes in a lazy loaded shared module without the |
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. |
sudo sysctl fs.inotify.max_user_watches=524288 That fix the problem for me. Thanks @ulymor! |
Got the similar issue, @angular/cli: 1.3.2 Do any one know the solution? |
Can anyone other than @filipesilva continue this discussion in another thread? This isn't working. #8033 (comment) |
thank you ... |
I am also facing the same issue. ng serve is not getting reloaded when changes made in a particular directory Model. Apart from those Model classes it is detecting the changes.. @angular/cli: 1.3.2 Please help me to fix this issue.. |
I am using angular-cli 1.6.3, and having the same issue, but only my directive's code has this problem, I tried to modify the code, remove the code completely, restart my desktop but the ng serve always load the old directive code |
use npm start it helps me to fix the issue
…On Fri, Dec 29, 2017 at 6:39 AM, shilu911 ***@***.***> wrote:
I am using angular-cli 1.6.3, and having the same issue, but only my
directive's code has this problem, I tried to modify the code, remove the
code completely, restart my desktop but the ng serve always load the old
directive code
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2389 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXwY3tbm5dxUWNnuZNi_zNjObrftMmVOks5tFDvigaJpZM4KIrXk>
.
--
*Thanks & Regards*
*Ajith*
|
I was having this issue recently, when working with webstorm, and to me it was weird and inconsistent. I was changing between v1.6.5 and 1.6.6 to see if 1.6.6 broke something, however I couldn't identify any consistent behaviour... After researching i found that file watches on ubuntu is handled by inotify, and found this article which helped me solve my issue. https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit |
@jeanpaulattard thanks, it helps me with PhpStorm too |
sudo sysctl fs.inotify.max_user_watches=524288 this command works but i have to do every time when system restarts im using ubuntu 16.04 64 bit Angular CLI: 1.7.3 @angular/cli: 1.2.4 |
I'm having this issue not on Linux but Windows 10 machine and VS Code. Anyone solutions for that platform? |
same issue with MacOS 10.13.3. After a typescript error fix, most of the time I need to restart angular-cli to force re-compilaton |
I have same issue, OS: Linux Mint 18.3 Sylvia |
@paillave thanks man you had rescued me 👍 👍 |
@owlstack @salehasadi @harilalinapp Is this issue resolved in windows? Can someone help? Any help is highly appreciated! Thanks! |
I'm having same issue on Windows 10 and tried exluding the huge node_modules in tsconfig.json, but still shows up old display. I see that the typescript file does not transpile into an updated .js |
it's works for me @paillave, I was working with Linux CentOs 7; node -v: v8.11.3; npm -v: 5.6.0 |
I have the same issue on |
|
Same issue on
The @chapultepec solution works for me, so it wasn't a node, npm, browser, editor... problem. Now I remember using |
Same here (HTML changes automatically is rebuilded, TS changes nothing happens). I'm using Ubuntu 18.04 with vscode version 1.29.1. @chapultepec's answer works fine for me, but we SHOULD NOT have to do this... Thanks @chapultepec.
|
Having the same issue with |
I had the same issue working on Vagrant vm on Ubuntu 16.04 LTS.
I tried all solutions, increasing notify watches, using
|
If you're using Vagrant and the
Obviously you can set that environment var anywhere, but for a disposable VM it's quick and dirty to just add it to the npm script. |
Ubuntu 18.04
|
@toni8810 Thank you!! 👍 |
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
ng --version
. If there's nothing outputted, please runin a Terminal:
node --version
and paste the result here:angular-cli: 1.0.0-beta.16
node: 6.6.0
os: linux x64
do on your code? etc.
created new project nothing changed only changed the title
more information.
While updating the source files the build is not auto updating the app
The text was updated successfully, but these errors were encountered: