Skip to content

Conversation

@ganesh8068
Copy link

title

fix: add fallback to default style for registry items

description
This PR fixes an issue where installing components (like dashboard-01) fails when using a custom or experimental style (e.g., radix-vega) because the component does not exist in that specific style's registry path.

Changes

Modified fetchRegistryItems in packages/shadcn/src/registry/resolver.ts to implement a fallback mechanism.
If a component is not found (404) in the user's configured style, the resolver now attempts to fetch it from the default new-york style before throwing an error.

Why
Users with custom styles configured were unable to install standard blocks like dashboard-01 because the CLI was constructing URLs like .../styles/radix-vega/dashboard-01.json, which do not exist. This ensures these components remain accessible regardless of the active theme.

Testing

  • Validated via static analysis and reproduction steps (simulated).

  • Existing tests should pass (could not verify locally due to missing dependencies).

Changeset

Added fix-dashboard-fallback.md

@vercel
Copy link
Contributor

vercel bot commented Jan 28, 2026

@ganesh8068 is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant