Component could not be found when adding to codebase

Hello, how are you doing ?

When I try to use the command to add it to the codebase, I don’t normally get any errors, but now on a brand new project I got this error:

Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

The component at https://ui.shadcn.com/r/styles/default/color-picker.json.json was not found.
It may not exist at the registry. Please make sure it is a valid component.

I searched everywhere how to fix this issue, however I couldn’t find anything.

I tried to install it separately by using: npx shadcn@latest add color-picker, but I was still getting the same error.

Thank you in advance.

Have a great day/evening.

Hi @mirchev, welcome to the Vercel community!

I’m assuming the issue is regarding a v0 project. Sorry, that you are facing this issue but seems like something to do with import path or project setup.

Could you share your v0 chat link or the GitHub repository? That’d help us debug it together.

Hello, again.

Here is the link to the V0 chat: Private v0 Chat – v0 by Vercel

Also should I make it public or should I just leave it like that ?

Thank you in advance.

It’d be helpful for you to make it public!

Ok, thank you, I made it public, here is the new link:

Hello, sorry for writing again, but I still haven’t found a way to fix the error.
Here is also the new link because I accidentally made it private again: https://v0.dev/chat/dXObtq6dtCp?b=b_7p5LqyaUovc

Thanks in advance

Hi @mirchev, it seems like shadcn/ui doesn’t have a color-picker component Add a color picker · shadcn-ui/ui · Discussion #573 · GitHub.

The website preview from the v0 chat looks good. I’d suggest reiterating with v0 to avoid using the non-existent shadcn/color-picker and instead use another library or create a color picker using other shadcn components.

Ok, thank you a lot. Have a great.

Ok, so we are using another method now which is from shadcn but we are still getting:

:heavy_check_mark: Writing components.json.
⠸ Checking registry.

Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

The component at https://ui.shadcn.com/r/styles/new-york/color-picker.json was not found.
It may not exist at the registry. Please make sure it is a valid component.

I told V0 to remove it from the components.json, and to remove the color-picker.tsx from the UI but we are still getting the same error, no matter what I tell it to remove.

Thank you in advance.