-
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
webpack live reload is not working. #1610
Comments
Are you using the Both should work but I ask because we really need more information to accurately tackle this. |
I am using ng serve |
10% building modules 1/1 modules 0 active |
I'm seeing the live reload working myself. Can you give very exact repro steps so we can see if there's something missing? |
I am having the same issue after I cloned a project from my repo. On my regular machine, I see a lot of something like But on my other machine, I only see this -
Now, when I make any changes to my code, it doesn't reload. |
If you can provide us with a repo where this behaviour happens, we can investigate. Otherwise I'm not really able to reproduce this behaviour. |
I'm having same issue. My ng version is: angular-cli: 1.0.0-beta.11-webpack.2 ng serve works without live reload and ng build --watch only build the app and then quit without even serving the app on localhost |
I'm having the issue for directories starting with '+'. |
I renamed my directories to remove the '+' and in fact the problem happens with any subdirectory of I'm on Ubuntu 14.04 and I can reproduce this with any repository. For example:
Then open a browser on the application. Edit
Save: ng reloads the app. Edit
Save: ng does not reload. @filipesilva Do you confirm you cannot reproduce following these steps? |
I had the same issue, but managed to fix it. The problem might have to do with folder naming. At first, my main project folder (where I would navigate to before doing "ng serve") was named something like "XX (Front)". I renamed it to "XX_Front" (and flattened the folder structure) and live reload started working. |
@osechet I followed your instructions and had a life reload be triggered when changing I'm using |
I'm using vscode as well but I tested several editors to see if there was a difference. I'm not yet using beta.14. I will try during the week. |
I confirm the @FoodBuster naming problem. My project was in directory named like : |
I'm on linux, the naming doesn't fix mine. My files are located at |
I fixed this by removing running |
I just updated my project from 1.0.0-beta.11-webpack.8 to 1.0.0-beta.15. Everything has been cleaned (node_modules, node cache...). Problem is still here. I'm on Ubuntu 14.04. |
So as far as I can tell, there's two situations that can cause this issue:
We'll try to find a more permanent solution to these problems. |
ng serve --poll=1000 works for me fine |
--poll=1000 saved me thanks !! |
This still happens, I've just installed angular cli and it doesn't work properly. I'm just following the angular guide. The error is the same. When you run Solution by @thesunnypro and @alexsaraiva work for me, but I'm still wondering why this happens.
Angular CLI: 1.6.7
Node: 6.10.1
OS: linux x64
Angular: 5.2.3
@angular/cli: 1.6.7
@angular-devkit/build-optimizer: 0.0.42
@angular-devkit/core: 0.0.29
@angular-devkit/schematics: 0.0.52
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.7
@schematics/angular: 0.1.17
typescript: 2.5.3
webpack: 3.10.0
Linux 4.14.16-200.fc26.x86_64 x86_64 |
Had the same problem when running the Steps for solution:
if still not working after re-installing the This is my setup:
|
I am using Centos, and increasing the amount of inotify watchers worked for me. It is also applicable to Ubuntu users. |
--poll=1000 causes my cpu to spike insanely high when running docker / archlinux |
I dont understand why this ticket was closed |
This is not an issue with low inotify watchers, the alpine node base image has the following: /app # sysctl -a | grep inotify |
Even if this issue is related to low inotify watchers, it is not an OS issue but an Angular issue. |
It would be great if the angular team and @filipesilva put together an official docker hub container with the angular client working in it. It would allow us to narrow the possibility space for whats failing across these numerous build approaches. |
This is still a problem, same behaviour on a Fedora / Windows 10 machine |
i used |
@KAUSHIK-ROY that's right! |
It's work with me. Thanks. |
Solution offered by @cabaleirog worked for me. (Ubuntu)
My app.component changes were triggering the update. But all the other components I made to place within the app would not trigger any updates to the view of my app. This solution made any changes I made update the view, and it works accordingly now. |
This solved the issue on my Angular 7 project in Ubuntu. Thank you @sergiyvoytovych |
Looks like there's already a solution for the issue. It's strange that I cannot reproduce it at all though. Please try updating to the latest CLI version. In case you hit this problem again, please share a repository with a minimal demo so we can reproduce the bug and open a new issue. |
You just run following command it will work when you're did any changes. app will auto-deploy. ng serve -o |
@Narain96 - thanks, your solution works for me |
I have been having the same issue. Only solution that works is the The issue itself definitely appears to be Angular version dependent. I have a project folder with a local Angular version of 5.2.0 and the recompile and reload on saved changes works no problem. My global Angular 7 version does not allow for this. The My Angular version info:
|
More or less the same issue here: all HTML and CSS files are properly watched, but not the TypeScript files. Whatever the solution applied (removing/reinstalling the Tested with Node.js 12.2.0 and 12.3.0 on Windows 10 and Ubuntu 19.04: in my case, the issue is clearly not OS-dependant.
|
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. |
I have installed the webpack but the live reload is not working , it is building the modules and caching it.
Linux 4.4.0-31-generic
node v6.2.2
npm v3.10.5
angular-cli: 1.0.0-beta.11-webpack
node: 6.2.2
os: linux x64
The text was updated successfully, but these errors were encountered: