When attempting to add the v0 component https://v0.dev/chat/b/b_MDsFl9sNbn4 using npx shadcn@latest add, the command fails with a 404 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/new-york-v4/date-picker.json was not found. It may not exist at the registry. Please make sure it is a valid component.
This occurs because the v0 component appears to have an invalid dependency declared (pointing to date-picker.json), which doesn't exist in the official shadcn/ui registry, as the Date Picker is meant to be composed manually.
Expected behavior: Ideally, the shadcn add command should either: a) Successfully install the v0 component if its dependencies are valid and exist.
b) Provide a more informative error indicating that a dependency is pointing to a non-existent registry component.
c) Potentially handle the composition automatically if the intent is clear.
Steps to Reproduce:
-
Initialize a new Next.js 15 project with TypeScript, Tailwind CSS v4, and the App Router.
-
Initialize shadcn-ui using the latest CLI and install: npx shadcn@2.3.0 add "https://v0.dev/chat/b/tC1vh0bPZI3"
-
Relevant components.json settings after init:
-
Style: default
-
Base Color: neutral
-
CSS Variables: yes
-
Using src directory.
-
Relevant dependencies (see Project Information below).
Project Information:
-
Framework: Next.js 15.3.1
-
Styling: Tailwind CSS v4 (using /postcss)
-
Language: TypeScript
-
Key Dependencies:
-
React: 19.0.0
-
Environment:
-
OS: macOS (Darwin 24.4.0)
-
Package Manager: npm * shadcn/ui Settings: Default style, Neutral base color, using CSS variables, components installed in src/components/ui, utils in src/lib/utils.ts.