-
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 --watch is not watching for code changes #8313
Comments
@davidrdz93 can you provide a sample project with this issue? also |
I am trying without the --watch flag but it is not working.. Last night I tried reinstalling webpack and It worked for a while! I don't know how to provide a sample project, however let me know if there are another ways to give you more info! Thanks! |
I don't know if there is something in my environment because in my other PC it is livereloading nice! |
I am just realizing that using ng serve with sudo is making it work properly |
Hi all, Then I remembered a problem I had a while back with I ran this on my Ubuntu machine and it seems to have kicked in and watching code changes:
Hope it helps |
Thanks @scottasmith increasing max watches on ubuntu worked for me |
@davidrdz93 try this: #9275 (comment) |
For me this also changed from one day to the other, also running the the
Maybe that is of any help?!
|
@scottasmith 's solution worked for me as well. Thank you. |
@scottasmith 's solution worked for me as well for angular version 1.6.3 |
@scottasmith Thanks. It worked for me as well. |
Below cmd is working for me echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |
Thanks a ton. This worked for me like a charm on Ubuntu 18.04 LTS ! |
watch is not watching for code changes i am using windows |
@oranjos9 what's your Angular CLI version? |
@mgechev It's not working for me, I haven't installed it globally but only at Project Level Angular CLI Version: 8.1.1 |
Not sure if that's a problem in the CLI. Happy to see that there's a workaround for linux, but this also makes me thing that the issue is related to permissions or other OS-level configuration. With the limited information we have here, I don't think there's anything more we can do. I'm closing for now, please comment or open a new issue if you have more insights or you're able to consistently reproduce the problem. |
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. |
Bug Report or Feature Request (mark with an
x
)Versions.
@angular/cli: 1.4.9
node: 8.9.0
os: linux x64
@angular/animations: 4.3.6
@angular/common: 4.3.6
@angular/compiler: 4.3.6
@angular/core: 4.3.6
@angular/forms: 4.3.6
@angular/http: 4.3.6
@angular/platform-browser: 4.3.6
@angular/platform-browser-dynamic: 4.3.6
@angular/router: 4.3.6
@angular/cli: 1.4.9
@angular/compiler-cli: 4.3.6
@angular/language-service: 4.3.6
typescript: 2.3.4
Repro steps.
ng serve --port 8080 --watch
The log given by the failure.
The development server is not reloading when changes are made on the code..
It only compiles and serves the project.
I don't know what other information can I supply in order to explain better myself!
The text was updated successfully, but these errors were encountered: