Skip to content

[bug]: json registry error for shadcn components #8050

@crycodebaby

Description

@crycodebaby

Describe the bug

i try to add some shadcn-cli components to my project but its failing with
"SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON"
and
"Failed to fetch components from registry."

command: npx shadcn-cli@latest add navigation-menu

Affected component/components

Navigationmenu

How to reproduce

npx shadcn-cli@latest add navigation-menu

Codesandbox/StackBlitz link

No response

Logs

System Info

hello frog

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions