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
When trying to install newer versions of @sveltejs/kit I receive the following errors:
Conflicting peer dependency: vite@3.2.5
$ npm i @sveltejs/kit@next
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: histoire@0.11.9
npm ERR! Found: vite@4.0.1
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/kit@1.0.0-next.584
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 histoire@0.11.9
npm ERR! node_modules/histoire
npm ERR! peer histoire@"^0.11.9" from @histoire/plugin-svelte@0.11.9
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: vite@3.2.5
npm ERR! node_modules/vite
npm ERR! peer vite@"^2.9.0 || ^3.0.0" from histoire@0.11.9
npm ERR! node_modules/histoire
npm ERR! peer histoire@"^0.11.9" from @histoire/plugin-svelte@0.11.9
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
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".
Clear and concise description of the problem
When trying to install newer versions of @sveltejs/kit I receive the following errors:
Conflicting peer dependency: vite@3.2.5
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 histoire@0.11.9:
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/kit@1.0.0-next.573
and vite 3 works.Additional context
Using @sveltejs/kit@1.0.0-next.573 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: