Compatibility Issue: React 16 with Vite (jsx-dev-runtime error)
#461
Answered
by
ArnaudBarre
Gandalf-hash
asked this question in
Q&A
|
Description: I am attempting to migrate a React 16 project to Vite, but I am encountering issues with the JSX runtime. Specifically, I get the following error when running the development server: Steps Taken:
Observations:
Questions:
Environment:
Thank you for your help! |
Answered by
ArnaudBarre
Apr 17, 2025
Replies: 2 comments
|
You should use the jsxRuntime option: |
0 replies
Answer selected by
ArnaudBarre
|
Awesome, it works now Thanks so much for your help 🙌 I had placed the |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should use the jsxRuntime option:
react({ jsxRuntime: 'classic' }). You should not need esbuild options once setup