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

feat: update to Vite 5 and @quasar/app-vite dependency to ^2.0.0 #385

Open
nicobao opened this issue Mar 19, 2024 · 0 comments
Open

feat: update to Vite 5 and @quasar/app-vite dependency to ^2.0.0 #385

nicobao opened this issue Mar 19, 2024 · 0 comments

Comments

@nicobao
Copy link

nicobao commented Mar 19, 2024

Problem

Running quasar ext add ssg in a project that was scaffold using Quasar CLI with Vite 5 outputs the following error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: quasar-app-extension-ssg@5.1.1
npm ERR! Found: @quasar/app-vite@2.0.0-beta.5
npm ERR! node_modules/@quasar/app-vite
npm ERR!   dev @quasar/app-vite@"^2.0.0-beta.5" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional @quasar/app-vite@"^1.7.0" from quasar-app-extension-ssg@5.1.1
npm ERR! node_modules/quasar-app-extension-ssg
npm ERR!   dev quasar-app-extension-ssg@"*" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: @quasar/app-vite@1.8.0
npm ERR! node_modules/@quasar/app-vite
npm ERR!   peerOptional @quasar/app-vite@"^1.7.0" from quasar-app-extension-ssg@5.1.1
npm ERR!   node_modules/quasar-app-extension-ssg
npm ERR!     dev quasar-app-extension-ssg@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 

Solution

Update dependency to support the latest version of Quasar.

Follow this guide:
https://quasar.dev/quasar-cli-vite/upgrade-guide/

@nicobao nicobao changed the title feat: update to Vite 5 and app-vite to ^2.0.0 feat: update to Vite 5 and @quasar/app-vite dependency to ^2.0.0 Mar 19, 2024
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