You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
ethan-ou
changed the title
Upgrade @vitejs/plugin-react to 4.0.0^
Upgrade @vitejs/plugin-react to ^4.0.0
Jun 26, 2023
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.Upgrading to version ^4.0.0 for
@vitejs/plugin-react
seems to fix the issue.The text was updated successfully, but these errors were encountered: