-
Notifications
You must be signed in to change notification settings - Fork 196
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
Incompatible with React 18 #621
Comments
+1 |
I tested, and apparently the master version works well. There has been changes this year to change imports from I tested with React 18 and changing my
to:
Works without issues. @pmmmwh, could we have a new release from master? :-) |
This is fixed in #576 but we are all waiting on a version with this fix to be published. Important to note that this is still compatible with React 18, just not react-refresh 0.12. react-refresh 0.11 still works with React 18. |
i agree that these errors are related to react-refresh 0.12.0 and not react 18. you should be able to use react 18 as long as you don't upgrade from react-refresh 0.11.0 to 0.12.0. we just need to wait for a newer release of react-refresh w/ the fix. |
I can confirm updating package.json with following changes fixes the issue.
|
are you ok? |
This comment was marked as off-topic.
This comment was marked as off-topic.
Thanks for noting this. Slava Ukraini. I can take action and publish an npm package Tomorrow which could be used until we hear back from @pmmmwh. |
Hi, I really do not appreciate the attempt to misinterpret what I write on my PERSONAL Twitter account. The fixes just have not been released simply because I did not have the time and effort to go through more planned work.
If you haven't done it, I would strongly advise against doing so to reduce fragmentation. Fix is published in |
@pmmmwh, I agree that reducing fragmentation is very important. I haven't published anything and of course I will not publish anything. And I'm very sorry for the misinterpretation from my behalf. |
If React 18 is supported, does the home page need updating? BTW, thanks @pmmmwh for your excellent work! I'm maintaining https://github.com/shakacode/react_on_rails and https://github.com/shakacode/shakapacker, and this is a crucial part of the puzzle. CC: @tomdracz. |
The react and react-dom libraries have been updated to version 18. Using version 18 with the react-refresh and this webpack plugin throws the following error when running webpack dev server:
Versions
node: 16.14.0
react: 18.0.0
react-dom: 18.0.0
webpack: 5.70.0
webpack-dev-server: 4.7.4
react-refresh: 0.12.0
react-refresh-webpack-plugin: 0.5.4
Current work around is to disable react-refresh & react-refresh-webpack-plugin or downgrade to react/react-dom 17
The text was updated successfully, but these errors were encountered: