Open mroxso opened 2 months ago
I believe the command should be npx shadcn add separator
.
Typo I make all the time 😃
Same with npx shadcn@latest add button
; is whatever the CLI calls, down? Can I enable verbose logging (not --verbose
at least)
npx shadcn@latest add button
This is working for me. Are you able to visit: https://ui.shadcn.com/r/styles/default/button.json on your network? That's what the CLI calls. Replace default with new-york if you were trying that.
@jolbol1
Curl works
@jolbol1
Curl works
Ah, seems its failing for you on the updating files stage, I think its trying to get the color. Whats set in your components.json?
Full list of URL's it tries when running button command, but replace neutral with the color.
https://ui.shadcn.com/r/index.json
https://ui.shadcn.com/r/styles/default/button.json
https://ui.shadcn.com/r/colors/neutral.json
It's the GET for the colour violet
: I thought I could pick a colour from https://ui.shadcn.com/colors?
At the moment the registry only seems to contain Neutral, Gray, Zinc, Stone, Slate
. Not sure why.
Relevant code enforcing this: https://github.com/shadcn-ui/ui/blob/81c7e44863c4f571a9818d5ac55092effbd348f1/apps/www/scripts/build-registry.mts#L583C1-L584C1
Created #4683 which would fix this, and support custom registries as well.
Oh.. I did not realize there was a typo. Sorry for that. It works now! The error message is a bit confusing though.
Describe the bug
I get the following error when I try to call
npx shadcn add seperator
.Error:
It is a project that used shadcn-ui. I already did the update in the
components.json
I use nextjs 14
Affected component/components
seperator
How to reproduce
npx shadcn add seperator
Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting