Skip to content
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 creating new hash on code updates #4422

Closed
rohitsodhia opened this issue Feb 3, 2017 · 7 comments · Fixed by #4384
Closed

ng serve not creating new hash on code updates #4422

rohitsodhia opened this issue Feb 3, 2017 · 7 comments · Fixed by #4384

Comments

@rohitsodhia
Copy link

Please provide us with the following information:

OS?

Win 8

Versions.

1.0.0-beta.30

Repro steps.

Originally created in 1.0.0-beta.26, I followed the update steps on the main GIT page to update to 30.

The log given by the failure.

Not a failure, persay. When I run ng serve, the initial compilation works out. When I change code, it triggers the compiler to rebuild the files, but the same hash is served, and the files don't seem to update. I have to stop ng serve and restart it each time I make a code change to see my changes reflected.

@nerumo
Copy link

nerumo commented Feb 3, 2017

Same on Win 10, the hash stays the same. If I change the html it works, but not for TS.

@hansl
Copy link
Contributor

hansl commented Feb 3, 2017

Seems like this is a problem mostly with Windows. We'll investigate. Thanks!

@Ionaru
Copy link

Ionaru commented Feb 3, 2017

Can confirm issue on Windows 10, changing something in the stylesheets will also trigger a refresh correctly.

@Jonatthu
Copy link

Jonatthu commented Feb 3, 2017

Same here with ngtools 1.2.7 is happening, I've installed 1.2.4 for keep working

@mattdistefano
Copy link

Dup of #4338?

hansl pushed a commit that referenced this issue Feb 3, 2017
…iles (#4384)

Fix WebpackCompilerHost's cache invalidation behavior on Windows
systems. Previously, no call to _resolve was made, causing paths with
backslashes not to match the file cache.

Fixes #4422
Fixes #4345
Fixes #4338
@ulymor
Copy link

ulymor commented Feb 8, 2017

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.
To solve to issue I increased the watches limit to 512K

sudo sysctl fs.inotify.max_user_watches=524288
sudo sysctl -p --system

After that I restarted my IDE (WebStorm in my case) and after that the change detection started to work.

MRHarrison pushed a commit to MRHarrison/angular-cli that referenced this issue Feb 9, 2017
…iles (angular#4384)

Fix WebpackCompilerHost's cache invalidation behavior on Windows
systems. Previously, no call to _resolve was made, causing paths with
backslashes not to match the file cache.

Fixes angular#4422
Fixes angular#4345
Fixes angular#4338
asnowwolf pushed a commit to asnowwolf/angular-cli that referenced this issue Apr 12, 2017
…iles (angular#4384)

Fix WebpackCompilerHost's cache invalidation behavior on Windows
systems. Previously, no call to _resolve was made, causing paths with
backslashes not to match the file cache.

Fixes angular#4422
Fixes angular#4345
Fixes angular#4338
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants