S
SolidJS12mo ago
Ninguern

Error while installing dependencies on template

I've just ran npm create vite@latest my-app -- --template solid-ts to start a new template and got this error after trying to run npm install: Node version: v20.10.0 npm version: 10.2.3
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! peerOptional vite@"^3.0.0 || ^4.0.0 || ^5.0.0" from [email protected]
npm ERR! node_modules/vitefu
npm ERR! vitefu@"^0.2.4" from [email protected]
npm ERR! node_modules/vite-plugin-solid
npm ERR! dev vite-plugin-solid@"^2.7.2" from the root project
npm ERR! dev vite@"^5.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vite@"^3.0.0 || ^4.0.0" from [email protected]
npm ERR! node_modules/vite-plugin-solid
npm ERR! dev vite-plugin-solid@"^2.7.2" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/vite
npm ERR! peer vite@"^3.0.0 || ^4.0.0" from [email protected]
npm ERR! node_modules/vite-plugin-solid
npm ERR! dev vite-plugin-solid@"^2.7.2" 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! 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! peerOptional vite@"^3.0.0 || ^4.0.0 || ^5.0.0" from [email protected]
npm ERR! node_modules/vitefu
npm ERR! vitefu@"^0.2.4" from [email protected]
npm ERR! node_modules/vite-plugin-solid
npm ERR! dev vite-plugin-solid@"^2.7.2" from the root project
npm ERR! dev vite@"^5.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vite@"^3.0.0 || ^4.0.0" from [email protected]
npm ERR! node_modules/vite-plugin-solid
npm ERR! dev vite-plugin-solid@"^2.7.2" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/vite
npm ERR! peer vite@"^3.0.0 || ^4.0.0" from [email protected]
npm ERR! node_modules/vite-plugin-solid
npm ERR! dev vite-plugin-solid@"^2.7.2" 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.
2 Replies
Jasmin
Jasmin12mo ago
The solid vite plugin is not yet compatible with vite 5. I think this should work: npm create vite@4 my-app -- --template solid-ts
Ninguern
NinguernOP12mo ago
Got it, thank you
Want results from more Discord servers?
Add your server