generated from codesandbox/codesandbox-template-blank
-
Notifications
You must be signed in to change notification settings - Fork 80
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/plugin-react@2.2.0
npm ERR! Found: vite@4.3.0
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/plugin-react@2.2.0
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: vite@3.2.7
npm ERR! node_modules/vite
npm ERR! peer vite@"^3.0.0" from @vitejs/plugin-react@2.2.0
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