Skip to content
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 react/jsx-runtime not found #147

Open
nuthinking opened this issue Dec 14, 2021 · 4 comments
Open

Module react/jsx-runtime not found #147

nuthinking opened this issue Dec 14, 2021 · 4 comments

Comments

@nuthinking
Copy link

nuthinking commented Dec 14, 2021

After I upgraded from 6.0.5 to 6.0.10 or 7.0.1 I get:

Failed to compile.

./node_modules/react-tiny-popover/dist/Popover.js
Module not found: Can't resolve 'react/jsx-runtime' in '/Users/.../node_modules/react-tiny-popover/dist'

I'm using React 16.8.6

Rollback!

@alex-mironov
Copy link

Any plans to fix this?

@OpenSource03
Copy link

+1

@libaoxu
Copy link

libaoxu commented Jan 26, 2024

we can resolve this problem by indirect method, and do not neet update your react packages

  1. add react-jsx-runtime package, link is https://www.npmjs.com/package/react-jsx-runtime
  2. add webpack alias, 'react/jsx-runtime': nodeModulesResolve('react-jsx-runtime'), like as follow example
image

@JenyaKrasnik
Copy link

JenyaKrasnik commented Feb 20, 2024

@nuthinking @alex-mironov You should update your react version to 17.0.2. It helps me to use react-popover without an error "Can't resolve 'react/jsx-runtime'".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants