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

Add support for "--watch-poll" webpack-dev-server flag to ng serve #2991

Closed
ghost opened this issue Nov 2, 2016 · 2 comments
Closed

Add support for "--watch-poll" webpack-dev-server flag to ng serve #2991

ghost opened this issue Nov 2, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 2, 2016

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

@filipesilva
Copy link
Contributor

filipesilva commented Nov 4, 2016

Fixed in #1814. There's no documentation for this feature though, which is unfortunate.

@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

No branches or pull requests

1 participant