Comments (10)
What is RRWP? Did you mean this plugin? Nevermind, thinking about your problem now.
from react-refresh-webpack-plugin.
Yes, someone on IRC referenced it like that and I was under the impression that it was a common abbreviation.
from react-refresh-webpack-plugin.
I will need to see your webpack.config.js, just provide me the part you setup for devServer
. The setup itself is tricky.
from react-refresh-webpack-plugin.
{
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 webpack
like so: webpack serve --config=webpack.development.config.js
from react-refresh-webpack-plugin.
@JKHSDTV Does your <ClientContent />
directly contain those many Foo.jsx
component wrapped by a FooContainer.js
container? If so try adding one more layer like this:
<App/> -> <ClientContent/> -> many `Foo.jsx`
Also, make sure that you don't use any anonymous function for default export
.
from react-refresh-webpack-plugin.
Got multiple levels like that between Foo and ClientContent, and no anonymous default exports. Went through all the troubleshooting, none seem to apply.
from react-refresh-webpack-plugin.
I've got another clue, I think: when I limited my module.hot.accept
to accept a specific file, like module.hot.accept('./stuff/WhatEverStuff.js')
, I got the error message Error: Aborted because ./src/stuff/WhatEverStuff.js is not accepted
. However, if I change the accept to include the src
part of the path, it (correctly, since main.js
is in src
) complains that it can't resolve ./src/stuff/WhatEverStuff.js
. I am not certain what could be introducing this mismatch.
from react-refresh-webpack-plugin.
Are you doing any manual module.hot.accept
?
from react-refresh-webpack-plugin.
It would be helpful if a reproduction can be provided
from react-refresh-webpack-plugin.
Are you doing any manual
module.hot.accept
?
Your responded to a comment from me about how I use module.hot.accept
😂
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 :(
from react-refresh-webpack-plugin.
Related Issues (20)
- Getting lot's of *.hot-update.js files in dist folder HOT 1
- Not working with multiple entry points in webpack where one entry does not use react
- Expand webpack-dev-server dev dependency to include the newes semver 5.x HOT 1
- erroroverlay
- There are some edge cases where we have to manually refresh the page to see the change. HOT 1
- `useEffect` inside refreshed code runs needlessly HOT 1
- Alternative for React Class Components. HOT 1
- Issues with peer dependencies found HOT 1
- Memory cleanup doesn't happen on incremental compiles HOT 3
- Using the external configuration item of webpack in the development environment can cause react refresh to fail HOT 4
- Performs full reload and state loss in case of error HOT 2
- App reloads when saving a new class in a SCSS module HOT 1
- [webpack-dev-server] Some internal modules are deprecated. HOT 3
- [yalc] Some internal modules are deprecated.
- [del-cli] Some internal modules are deprecated. HOT 1
- [jest] Some internal modules are deprecated. HOT 1
- [webpack-plugin-serve] Some internal modules are deprecated. HOT 1
- [vulnerabilities] npm displayed a warning "2 high severity vulnerabilities". HOT 1
- Error when adding import to another member in the same module.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-refresh-webpack-plugin.