-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Polling not working in webpack-dev-server #194
Comments
I can confirm that this is an issue with the release (v1.9.0) and commit 8e8f540. Appears to be an issue with socket.io as the exception is on line 23 of socket.io/lib/transport/polling.js The webpack output is as follows, and causes an exception (object is not a function): Executing the following on the console works as expected: Comparing the result of var XMLHttpRequest = webpack_require(/*! xmlhttprequest */ 19); Not working: Working: Checking my make-webpack-config.js, I found the problem: var externals = [{ Removing xmlhttprequest from this array solved my problem. I am pretty sure I put it in there to resolve this issue: #66 @sokra Keep up the great work! |
@maspwr as written here http://webpack.github.io/docs/webpack-dev-server.html you must put these lines:
into WebpackDevServer constructor. This works fine for me. |
@Andrew8xx8 works like a charme with my vagrant setup. Thank you. |
I see that others aren't having this issue. I'll retest when I need to use that functionality again and reopen if I can reproduce the issue. Thanks. |
I'm trying to set up the
webpack-dev-server
to watch for changes using the polling mechanism. Polling in general works if I dowebpack --watch --watch-polling
as mentioned in webpack/webpack#125 (comment), however I cannot get it to work inwebpack-dev-server
. Following the docs, I'm trying to pass the following option:The text was updated successfully, but these errors were encountered: