-
-
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
Multi-compiler mode, hot-update.json 404 #2355
Comments
Please create reproducible test repo |
thanks! |
This comment has been minimized.
This comment has been minimized.
Same issue here. I am using the Say Compiler 1 recompiles on a file save:
Is there any update on how to fix this? |
Same problem with me if (module.hot) module.hot.accept() so the second access of |
Reference “Multi-compiler mode, hot-update.json 404” -> webpack/webpack-dev-server#2355 Signed-off-by: Andrew Welch <[email protected]>
Reference “Multi-compiler mode, hot-update.json 404” -> webpack/webpack-dev-server#2355 Signed-off-by: Andrew Welch <[email protected]>
Reference “Multi-compiler mode, hot-update.json 404” -> webpack/webpack-dev-server#2355 Signed-off-by: Andrew Welch <[email protected]>
- Added `--no-tablespaces` to the mysqldump command options to work around changes in MySQL Fixed - Modern config only for local dev, [fixing multi-compiler issues](webpack/webpack-dev-server#2355) with HRM - Fix redis session config to use `App::sessionConfig()` Changed - Remove `[hash]` from dev config to eliminate potential [memory errors](webpack/webpack-dev-server#438) - Use `[contenthash]` in production instead of [hash or chunkhash](webpack/webpack.js.org#2096) - Readme file to give proper credit - - -
I just ran into this problem. After lots of debugging, I discovered that the order in which the compilers emit the "done" event seems to determine whether you run into this issue or not. In my case, if the client compiler finished before the server compiler, then I was seeing this issue. But if the client compiler finishes last, everything works as expected. |
this issue still open , how to solve it |
I can consistently reproduce this issue as well, with the following case: https://gist.github.com/aboks/b5ca75f028631ca06d1235f866b348a7 (in case it helps). It is only a minimal variation of the It seems that the failing page tries to download the Other observation: if I add different output filenames to both compilers (these are commented out in the gist), everything seems to work fine. Could it be that hashes are emitted linked to the output filename, but without taking the output path into account? |
Set name parameters to make sure bundles don't process each other's updates. It can run normally. 😉 https://github.com/webpack-contrib/webpack-hot-middleware#multi-compiler-mode |
@daychongyang my example in #2355 (comment) has |
The difference is that I directly used |
this issue still open , how to solve it |
Close in favor #2792 #2792 (comment), here is the same problem, you use different chunks with different runtime on the same page, anyway it is possible in webpack v5, set Also we have small problems with multi compiler mode webpack/webpack-cli#2408 (it will be fixed in near future). Also I recommend to use this https://webpack.js.org/configuration/other-options/#dependencies if one build depend on other |
Code
Expected Behavior
bundles don't process each other's updates
Actual Behavior
The text was updated successfully, but these errors were encountered: