Closed thednp closed 1 month ago
are you using the latest version? because everything work fine to me
I tried both 0.7.2 and 0.7.1.
Can you switch to Node 20 and check again?
Also check pnpx shadcn-solid add button
.
i am using node 20 and yes pnpx work just fine, how about components.json
, do you update it too? there are some change to the schema recently
I cannot, the init won't go. It throws same error. Where should I put it and what should it contain please?
is the same, only the content is different
{
"$schema": "https://shadcn-solid.com/schema.json",
"tailwind": {
"config": "tailwind.config.cjs",
"css": {
"path": "src/app.css",
"variable": true
},
"color": "slate",
"prefix": ""
},
"alias": {
"component": "@/components",
"cn": "@/libs/cn"
}
}
is the same, only the content is different
Sorry man, I really don't know where.
in the root of the project
Tried that already won't work. Perhaps it's messing with app.config.ts / vite or tsconfig paths.
the cli check but not editing anything, does it wok in a fresh solidstart project? im testing on windows btw and everything is working fine
Which schema is correct? This?
"$schema": "https://shadcn-solid.com/schema.json",
or
"$schema": "https:/shadcn-solid.vercel.app/schema.json"
or
"$schema": "http://json-schema.org/draft-07/schema#",
the first one
I just tested on a fresh solid-start bare. The same error.
im working on a fix rn
HINT: don't do resolve paths like this
resolve(import.meta.somthing, '../package.json')
but do this
resolve(import.meta.somthing, '..', 'package.json')
This is to make sure your paths resolve properly on ALL OS, especially Linux/Mac.
Describe the bug
I've tried adding
npx shadcn-solid add button
an error.Affected component/components
probably all
How to reproduce
Trying to add shadcn-solid to an existing solid-start project, just using your regular
npx shadcn-solid add button
won't do.Codesandbox/StackBlitz link
-
Logs
System Info
Before submitting