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
REACT 18 + WEBPACK 5: Compiling Errors #3418
Comments
The cause is probably here. |
Same problem here:
|
I have the same problem with the |
i have the same problem with the not found: Error: Package path ./jsx-runtime.js |
This can easily be fixed by patching -import { jsx as _jsx } from "react/jsx-runtime.js";
+import { jsx as _jsx } from "react/jsx-runtime"; |
This looks like a duplicate of #3416 |
Is it possible to merge this as a permanent fix or does it potentially break something else? |
I assume it's possible but I didn't have time today to clone the repo and run tests, make the PR, etc. If I have time this week I will make a PR if someone else doesn't resolve it. |
The jsx runtime issues have been resolve in v16 |
This workaround worked for me, I only needed this section to make the errors go away.
|
Describe the bug
Two Compiling Error with REACT 18 and Webpack 5:
and:
Reproduction
mpx create-react-app
npm install react-dnd
in /src/index.js add:
Steps to reproduce the behavior:
npm start
Expected behavior
No Errors in compiling. No need to change the webpack config.
WORKAROUND
npm install react-app-rewired -d
create ./config-overrides.js as follow:
The text was updated successfully, but these errors were encountered: