Dependency error using npm init solid@latest
I am unable to initialize a SolidStart project using
npm init solid@latest
. I have tried multiple templates including basic, with-authjs, and with-tailwindcss, but all have failed with dependency errors when running npm install
for the first time.
Since the length of the error exceeds the character limit (2000), I'll include the error in the comments.9 Replies
Here is an example of an error that I have gotten
Repro:
1)
npm init solid@latest
2) npm install
error:
package.json
3) delete the override
4) npm install
error:
Create-Solid v0.5.14what happens if you set the version of vite in the devdependencies list to the same version as the override?
If I do that by replacing
"vite": "^5.1.6"
with "vite": "5.4.10"
, and then re-run npm install
, then I get
hmm, too bad, thought I was clever for a sec. hmmm, lemme think
And following the same strategy, if I replace
"vinxi": "^0.4.3",
with "vinxi": "^0.5.3",
and re-run npm install
, then I get
I am happy to share you my package json. might be a couple weeks out of date, and would not resolve the error you are reporting here, but at least you are no longer stuck
If memory serves my right, vinxi 0.5.x is the upgrade to vite 6, something solid start is not yet ready for. so you'll want to keep in on 0.4.x for now
this is the complete list of deps I use atm, you'll want to cherry pick which ones you wanna keep
pretty sure you could clear out all the dev-deps for instance. and many of the other deps are nice-to-haves I think
ooooh, seems vinxi got updated yesterday 🥳
https://github.com/solidjs/solid-start/pull/1778
Actually SolidStart went 1.1.0 yesterday
https://discord.com/channels/722131463138705510/722828650503995511/1338586209206931568
and npm lists it as available 11 hours ago but it doesn't look like the with-authjs template is in sync (doesn't look like any of them have moved to 1.1.0 yet 🤨 ).
GitHub
solid-start/examples/with-authjs/package.json at 2683e263a1dee8dff2...
SolidStart, the Solid app framework. Contribute to solidjs/solid-start development by creating an account on GitHub.
After a initializing a fresh project in
package.json
change
to
before running install
; that will stop the complaints.
(Though people are having problems with tailwind v4)Maybe removing
overrides
and upgrading vinxi to ^0.5.3 helps.