-
Notifications
You must be signed in to change notification settings - Fork 194
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
Issues when combining webpack HMR and react-refresh-webpack-plugin #807
Comments
|
Yes, someone on IRC referenced it like that and I was under the impression that it was a common abbreviation. |
I will need to see your webpack.config.js, just provide me the part you setup for |
{
devtool: "eval-source-map",
mode: "development",
devServer: {
hot: true,
liveReload: false,
allowedHosts: [ "all" ],
devMiddleware: { writeToDisk: true, index: false },
proxy: [{
context: [
"**",
"!/client/our-client.js"
],
target: "http://localhost:8000",
proxyTimeout: 1000 * 60 * 30,
timeout: 1000 * 60 * 30
}],
compress: false,
port: 9000
}
} And we run |
@JKHSDTV Does your
Also, make sure that you don't use any anonymous function for |
Got multiple levels like that between Foo and ClientContent, and no anonymous default exports. Went through all the troubleshooting, none seem to apply. |
I've got another clue, I think: when I limited my |
Are you doing any manual |
It would be helpful if a reproduction can be provided |
Your responded to a comment from me about how I use I'm afraid it's the typical situation of where it's part of a complex proprietary setup that isn't easy to export as a test case :( |
We have both HMR and RRWP running, and both seem to work fine on their own. But in a project with both, we are facing the problem that
.js
-files can't be reloaded without a full reload. I suspect this may be due to the chaining, so before I dig deeper, is the following supposed to work in the first place ? Or are we 'doing things wrong' somehow ?main.js
, which after some initializing callsReactDOM.render(<Provider store = {store} ><ClientContent /></Provider>, document.getElementById('react_container'));
.Foo.jsx
component wrapped by aFooContainer.js
containerFoo
's, theFooContainer.js
import
's multiple functions fromWhatEverStuff.js
WhatEverStuff.js
can not be hot reloadedSince our setup works without RRWP, I suspect that it gets confused somewhere in that chain ? Any hints ?
The text was updated successfully, but these errors were encountered: