Could not resolve dependency: peer vite@"^3.0.0 || ^4.0.0" from vite-plugin-solid@2.7.2 after using npm create
mikeaustin opened this issue · 1 comments
mikeaustin commented
Describe the bug
Using "npm create vite@latest my-app -- --template solid" as described in the getting statred guide (https://www.solidjs.com/guides/getting-started) results in an error because the latest vite is 5.x, and vite-plugin-solid expects only version 3.x or 4.x
Your Example Website or App
N/A
Steps to Reproduce the Bug or Issue
npm create vite@latest my-app -- --template solid-ts
cd my-app
npm i # or yarn or pnpm
Could not resolve dependency:
npm ERR! peer vite@"^3.0.0 || ^4.0.0" from vite-plugin-solid@2.7.2
Expected behavior
Using vite@4 resolves the issue. I don't know if solid is compatible with vite 5.x.
Screenshots or Videos
No response
Platform
macOS 13.6 (22G120)
Node 18
Additional context
No response
birkskyum commented
should work with vite-plugin-solid@2.8.0