-
Notifications
You must be signed in to change notification settings - Fork 11.9k

Description
Please provide us with the following information:
OS?
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Ubuntu Trusty Tahr (14.04) [LTS] 64 vagrant guest OS on Windows 10 host.
Versions.
Please run
ng --version
. If there's nothing outputted, please run in a Terminal:node --version
and paste the result here:
angular-cli: 1.0.0-beta.19-3
node: 6.4.0
os: linux x64
The file change detection isn't working with ng serve in vagrant on a Windows host. I've had the same issue using Browsersync and fixed it using "usePolling" in "watchOptions".
There is a similar configuration option in webpack.config.js but you can't edit that in angular-cli, so how about adding support for the "--watch-poll" flag to ng serve instead?
According to these comments "--watch-poll" should fix the issue:
webpack/webpack-dev-server#155 (comment)
webpack/webpack-dev-server#324 (comment)
http://stackoverflow.com/a/34937378