generated from codesandbox/codesandbox-template-blank
-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Description
I'm finding there's currently errors when resolving dependencies between vite
and @vitejs/plugin-react
when npm installing into a fresh sandbox using this template. This is likely because the @vitejs/plugin-react
package in this template is version 2.2.0, whereas newer versions of vite require a newer version of the plugin.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @vitejs/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/vite
npm ERR! dev vite@"^4.3.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vite@"^3.0.0" from @vitejs/[email protected]
npm ERR! node_modules/@vitejs/plugin-react
npm ERR! dev @vitejs/plugin-react@"^2.0.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/vite
npm ERR! peer vite@"^3.0.0" from @vitejs/[email protected]
npm ERR! node_modules/@vitejs/plugin-react
npm ERR! dev @vitejs/plugin-react@"^2.0.0" from the root project
Upgrading to version ^4.0.0 for @vitejs/plugin-react
seems to fix the issue.
Metadata
Metadata
Assignees
Labels
No labels