React Can't resolve 'react/jsx-runtime'
MadikMayCry opened this issue · 4 comments
Module not found: Error: Can't resolve 'react/jsx-runtime'
react: 17.02
typescript
alias: {
'react/jsx-runtime': 'react/jsx-runtime'
}
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?
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?
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.