-
Notifications
You must be signed in to change notification settings - Fork 632
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
Module not found: Can't resolve 'react/jsx-runtime' in '...\node_modules\react-dnd\dist\esm\core' #961
Comments
delete node_modules |
OK. I'm also updating CRA scripts to 4+ to see if that helps. |
And that has taken me down a different rabbithole facebook/create-react-app#9870 |
Nope. Still same error |
Would this be something on your side? As per this https://stackoverflow.com/questions/65913201/uncaught-error-cannot-find-module-react-jsx-runtime |
Well, solved with this adazzle/react-data-grid#2230 (comment) (I was on version "16.13.1") |
how did you solve it? i think you should try to upgrade to react 17.x. and latest create-react-app I did not see the error on my apps (all nextjs) |
By upgrading to react 16.14.0 from 16.13.1, as suggested in that comment I shared (adazzle/react-data-grid#2230 (comment)) |
the problem is as it seems that react-dnd switched to jsx-factory in this release https://github.com/react-dnd/react-dnd/releases/tag/13.0.0 and that seems to require react 16.14. react-dnd correctly declares react 16.14 as min peer dependency. We should also bump the min version to 16.14. i also recommend to try to upgrade to react 17 already. I did not experience any problem with it. |
A bit afraid to do yet that since I have a really huge project on my side. |
this is because react-dnd requires react 16.14 as min version. It should be usually safe to upgrade react to 16.14 or even 17. fixes #961
this is because react-dnd requires react 16.14 as min version. It should be usually safe to upgrade react to 16.14 or even 17. fixes #961
🎉 This issue has been resolved in version 2.0.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 2.1.0-beta.4 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Solved in my case. |
Describe the bug
Unable to compile with error: Module not found: Can't resolve 'react/jsx-runtime' in '...\node_modules\react-dnd\dist\esm\core'
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: