Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade @vitejs/plugin-react to ^4.0.0 #8

Open
ethan-ou opened this issue Jun 26, 2023 · 0 comments
Open

Upgrade @vitejs/plugin-react to ^4.0.0 #8

ethan-ou opened this issue Jun 26, 2023 · 0 comments

Comments

@ethan-ou
Copy link

ethan-ou commented 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.

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.

@ethan-ou ethan-ou changed the title Upgrade @vitejs/plugin-react to 4.0.0^ Upgrade @vitejs/plugin-react to ^4.0.0 Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant