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

React Can't resolve 'react/jsx-runtime' #90

Closed
MadikMayCry opened this issue Jan 19, 2023 · 4 comments
Closed

React Can't resolve 'react/jsx-runtime' #90

MadikMayCry opened this issue Jan 19, 2023 · 4 comments

Comments

@MadikMayCry
Copy link

Module not found: Error: Can't resolve 'react/jsx-runtime'

react: 17.02
typescript

alias: {
'react/jsx-runtime': 'react/jsx-runtime'
}

@ilfa
Copy link
Member

ilfa commented Jan 23, 2023

Hi @MadikMayCry!

I tried to use the library with 17th react and everything works well.

I installed it with create-react-app an used this instruction to revert react version from 18 to 17.

Can you provide more information about your problem?

@MadikMayCry
Copy link
Author

MadikMayCry commented Jan 23, 2023

we are using custom ssr & webpack

image
image
image

I tried adding alias in webpack resolvers, and google more about jsx/runtime error. But couldn't find solution

@ilfa
Copy link
Member

ilfa commented Jan 23, 2023

Did you try to use this alias?

alias: {
'react/jsx-runtime': 'react'
}

But anyway, react 17 has jsx-runtime.js in npm module.

Can you reproduce the problem in a sandbox?

@JuroUhlar
Copy link
Contributor

I am going to close this as the necessary debugging information hasn't been provided in over a year and the library now officially requires React 18 or higher.

Let me know if the problem is still relevant and I can reopen the issue, cheers.

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

3 participants