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
75.61k stars 4.75k forks source link

[bug]: shadcn toaster installation fails via v0-generated block #5920

Open Sooraj-Rao opened 5 days ago

Sooraj-Rao commented 5 days ago

Title: Error Adding ShadCN Components - via v0-generated block

Description: When attempting to add components using the command: npx shadcn@latest add "https://v0.dev/chat/****"

the following error occurs: The component at https://ui.shadcn.com/r/styles/default/toaster.json was not found. It may not exist in the registry. Please ensure it is a valid component.

Expected Behavior: The command should execute successfully and add all listed components without errors.

Actual Behavior: The toaster component cannot be found in the registry, resulting in the command failing.

Affected component/components

Toaster

How to reproduce

  1. Run the command npx shadcn@latest add "https://v0.dev/chat/**** // Generate a v0dev chat link and use
  2. The error message "The component at https://ui.shadcn.com/r/styles/default/toaster.json was not found" appears.
  3. The command fails due to the missing toaster component.

Logs

npx shadcn@latest add toaster](https://v0.dev/chat/********)  // URL not fully provided
⠇ 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/default/toaster.json was not found.
It may not exist in the registry. Please make sure it is a valid component.

System Info

Windows, Chrome

Before submitting

avenbreaks commented 5 days ago

same issue :

⠴ 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/toaster.json was not found.
It may not exist at the registry. Please make sure it is a valid component.
greeneley commented 4 days ago

Dear, it appears that you're trying to use toaster component. The correctcommand to install it is: npx shadcn@latest add toast

However, the command you used was toaster. It's incorrect for toast component. Please to check again. I successfully executed the install command yesterday without any issues

agusgarcia3007 commented 4 days ago

Same issue here. trying to add a v0-generated block:

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/toaster.json was not found.
It may not exist at the registry. Please make sure it is a valid component.
kaimakes commented 1 day ago
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/toaster.json was not found.
It may not exist at the registry. Please make sure it is a valid component.

Getting it too, even after manually installing shadcdn

franciscoracosta commented 14 hours ago

same here, manually installed and still getting that error when importing the codebase from v0