shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
72.85k stars 4.43k forks source link

[bug]: The component at https://ui.shadcn.com/r/colors/violet.json was not found. #5381

Open Nicolab opened 1 week ago

Nicolab commented 1 week ago

Describe the bug

I followed instructions to add the select component https://ui.shadcn.com/docs/components/select

When I install : pnpm dlx shadcn@latest add select, I have directly an error:

pnpm dlx shadcn@latest add select                                                                                                             ─╯

.../Library/pnpm/store/v3/tmp/dlx-63619  | +180 ++++++++++++++++++
.../Library/pnpm/store/v3/tmp/dlx-63619  | Progress: resolved 180, reused 180, downloaded 0, added 180, done
✔ Checking registry.
✔ Installing dependencies.
⠋ Updating files.

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/colors/violet.json was not found.
It may not exist at the registry. Please make sure it is a valid component.

 ERROR  Command failed with exit code 1: shadcn add select

pnpm: Command failed with exit code 1: shadcn add select
    at makeError (/snapshot/dist/pnpm.cjs)
    at handlePromise (/snapshot/dist/pnpm.cjs)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async Object.handler [as dlx] (/snapshot/dist/pnpm.cjs)
    at async /snapshot/dist/pnpm.cjs
    at async main (/snapshot/dist/pnpm.cjs)
    at async runPnpm (/snapshot/dist/pnpm.cjs)
    at async /snapshot/dist/pnpm.cjs

Affected component/components

Select

How to reproduce

pnpm dlx shadcn@latest add select

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

Mac M1, iOS 18

 "react": "^18.3.1",
 "react-dom": "^18.3.1",

Before submitting

talent-programmer commented 1 week ago

same here