Vitest + React 18: ReferenceError: React is not defined #2053
-
I'm attempting to integrate Vitest into my React 18 project for the first time. It seems Vitest cannot handle
The only way I've found to handle the problem is to I've set up a minimal project repository on GitHub demonstrating the problem. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
Use @vitejs/plugin-react |
Beta Was this translation helpful? Give feedback.
Use @vitejs/plugin-react