Compatibility Issue: React 16 with Vite (jsx-dev-runtime
error)
#461
-
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! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You should use the jsxRuntime option: |
Beta Was this translation helpful? Give feedback.
-
Awesome, it works now Thanks so much for your help 🙌 I had placed the |
Beta Was this translation helpful? Give feedback.
You should use the jsxRuntime option:
react({ jsxRuntime: 'classic' })
. You should not need esbuild options once setup