We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When trying to install newer versions of @sveltejs/kit I receive the following errors:
Conflicting peer dependency: [email protected]
$ npm i @sveltejs/kit@next npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/vite npm ERR! dev vite@"^4.0.1" from the root project npm ERR! peer vite@"^4.0.0" from @sveltejs/[email protected] npm ERR! node_modules/@sveltejs/kit npm ERR! dev @sveltejs/kit@"1.0.0-next.584" from the root project npm ERR! 2 more (@sveltejs/vite-plugin-svelte, vitefu) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer vite@"^2.9.0 || ^3.0.0" from [email protected] npm ERR! node_modules/histoire npm ERR! peer histoire@"^0.11.9" from @histoire/[email protected] npm ERR! node_modules/@histoire/plugin-svelte npm ERR! dev @histoire/plugin-svelte@"^0.11.9" from the root project npm ERR! dev histoire@"^0.11.9" from the root project npm ERR! npm ERR! Conflicting peer dependency: [email protected] npm ERR! node_modules/vite npm ERR! peer vite@"^2.9.0 || ^3.0.0" from [email protected] npm ERR! node_modules/histoire npm ERR! peer histoire@"^0.11.9" from @histoire/[email protected] npm ERR! node_modules/@histoire/plugin-svelte npm ERR! dev @histoire/plugin-svelte@"^0.11.9" from the root project npm ERR! dev histoire@"^0.11.9" 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! npm ERR! For a full report see: npm ERR! /home/user/.npm/_logs/2022-12-13T10_41_25_581Z-eresolve-report.txt
This looks like a limitation on peerDependencies of vite versions to 2 and 3, but not 4.
Assuming this is the only part missing updating the peerDependencies to include "vite": "^4".
Changing package.json of [email protected]:
"peerDependencies": { "vite": "^2.9.0 || ^3.0.0" },
"peerDependencies": { "vite": "^2.9.0 || ^3.0.0 || ^4.0.0" },
Or similar might resolve the npm install issue.
I have tested my stories with vite 4 and it seems to work with this version.
Staying on @sveltejs/[email protected] and vite 3 works.
@sveltejs/[email protected]
Using @sveltejs/[email protected] and trying to upgrading to more recent versions fail due to histoire dependency not allowing it.
The text was updated successfully, but these errors were encountered:
feat(sveltekit): upgraded sveltekit support to svelltekit v1.0.0 (fix #…
e7e5993
…392, #397) (#402) Co-authored-by: Guillaume Chau <[email protected]>
Thanks very much @Akryum ! I enjoy working with histoire! <3
Sorry, something went wrong.
No branches or pull requests
Clear and concise description of the problem
When trying to install newer versions of @sveltejs/kit I receive the following errors:
Conflicting peer dependency: [email protected]
Suggested solution
This looks like a limitation on peerDependencies of vite versions to 2 and 3, but not 4.
Assuming this is the only part missing updating the peerDependencies to include "vite": "^4".
Changing package.json of [email protected]:
Change from
Change to
Or similar might resolve the npm install issue.
I have tested my stories with vite 4 and it seems to work with this version.
Alternative
Staying on
@sveltejs/[email protected]
and vite 3 works.Additional context
Using @sveltejs/[email protected] and trying to upgrading to more recent versions fail due to histoire dependency not allowing it.
Validations
The text was updated successfully, but these errors were encountered: