-
Notifications
You must be signed in to change notification settings - Fork 12k
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
GlobCopyWebpackPlugin loops webpack --watch
for forever recompilation
#5252
Comments
Ok, I opened issue on socket.io issue tracker (socketio/socket.io-client#1088) as well. I am not sure where the bug lies exactly :( Minimal app to reproduce bug: https://github.com/metamaker/webpack-watches-bug |
Solved the problem. After debugging Webpack I figured out that it watches for changes in files that GlobCopyWebpackPlugin copies. So when GlobCopyWebpackPlugin copies, Webpack notifies watch about change, and GlobCopyWebpackPlugin copies again, and so on. This is there this cyclic behavior comes from. Bugfix is here: https://github.com/metamaker/webpack-watches-bug/compare/bugfix/solved-bug (in short, you need to set correct |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Mac OS X Yosemite
Versions.
@angular/cli: 1.0.0-rc.0 (e)
node: 7.4.0
os: darwin x64
@angular/common: 2.4.8
@angular/compiler: 2.4.8
@angular/core: 2.4.8
@angular/forms: 2.4.8
@angular/http: 2.4.8
@angular/platform-browser: 2.4.8
@angular/platform-browser-dynamic: 2.4.8
@angular/router: 3.4.8
@angular/cli: 1.0.0-rc.0
Repro steps.
ng eject
webpack configuration.devtool
like"devtool": "inline-source-map"
(reproducable with any devtool)"patterns":
section. I had next:webpack --watch
. It will compile bundles successfully, but will try to findsocket.io.js.map
on every watch iteration, and notify browser that bundles are recompiled. Again and again.My webpack.config.js
The log given by the failure.
Webpack tries to resolve
socket.io-client/bin/socket.io.js.map
file forever.Mention any other details that might be useful.
The text was updated successfully, but these errors were encountered: