-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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: Error: Can't resolve 'react/jsx-runtime' #6597
Comments
React 17 is "supported" but only React 18 and 19 are tested so there are no guarantees for older versions. facebook/react#20235 (comment) seems relevant to your problem |
Thank you! But this may not the solution what i need. It looks like there no jsx-runtime.js file only index.js in node_modules/react directory, maybe i need add some rule to handle this. |
@sometinaintright hi, is ur issue resolved? |
For posterity, I've ended up reverting the changes to use the classic jsx transformer in |
Yes, it's been resolved. Here my root cause: This caused it to analyze 'react/jsx-runtime' and resolve it to 'react/index.js/jsx-runtime.js'. |
Description
Hello, has anyone faced this issue?
The consumer is using classic jsx transform, everything works fine before i introduce lexical and I got this error.
Per as facebook/react#20235, Don't we support react v17 or could this be an issue of incompatibility with the classic jsx transform?
Version
Lexical version: 0.17.1
React: v17.0.2
Webpack5
The text was updated successfully, but these errors were encountered: