File saving causes Angular CLI to not include new file

I'm using Angular CLI and Webstorm and for some reason file saving doesn't work as expected. Whenever I switch away from Webstorm or manually save with Ctrl+S, Angular CLI detects file changes, rebuilds and refreshes the app. But those changes are not reflected in Chrome, I still get old files. At first I thought there's something wrong with CLI (or underlying Webpack) but after reinstall, nothing improved. Then I noticed that if I save in Webstorm (and encounter a bug) then switch to Sublime and save again, I get new files in Chrome. I think that rules out CLI as a cause, right?

Any ideas why this is happening?

Webstorm: 172.4155.35

 

0
3 comments

Likely the problem is that cli/webpack don't work with 'safe write' (https://webpack.github.io/docs/webpack-dev-server.html#working-with-editors-ides-supporting-safe-write) - though they marked it fixed in webpack 2, it's still the issue.
Please try disabling Use "safe write" in Settings | Appearance & Behavior | System Settings - does it make things any better?

0
Avatar
Permanently deleted user

I've disabled it but I need to work for a few hours to be sure because the problem didn't occur regularly. Will report my finding in a day, thank you.

0
Avatar
Permanently deleted user

After few hours of work, it seems everything works fine. Thank you!

0

Please sign in to leave a comment.