DavidHDev/react-bits

[BUG]: Error when trying to install AsciiText-JS-CSS snippet with shadcn add

Closed this issue · 1 comments

Describe the issue

When I run the shadcn CLI to install the AsciiText-JS-CSS snippet, it fails with a JSON parse error.
Instead of installing the snippet, the CLI receives an HTML response (starting with "<!doctype ...") and throws:

Unexpected token '<', "<!doctype "... is not valid JSON

Expected behavior:
The snippet should be fetched and added successfully to the project.

Reproduction Link

pnpm dlx shadcn@latest add https://reactbits.dev/r/AsciiText-JS-CSS

Steps to reproduce

either the snippet’s link is incorrect, or the server isn’t serving the manifest file for AsciiText-JS-CSS

Validations

  • I have checked other issues to see if my issue was already reported or addressed

The correct links are ASCIIText - uppercase ASCII. Will update the command