-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the issue
Getting error Unexpected token (1:0) when trying to add a react-bits component.
Reproduction Link
No response
Steps to reproduce
There's no problem adding the standard shadecn button component. Unable to add all the react-bit components that i've tried adding.
% npx shadcn@latest add button
✔ Checking registry.
✔ Installing dependencies.
✔ Created 1 file:
- src/components/ui/button.jsx
% npx shadcn@latest add @react-bits/ColorBends-JS-CSS
✔ Checking registry.
✔ Installing dependencies.
⠙ Updating files.
Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.
Unexpected token (1:0)Here's my versions:
% npm -v
11.6.2
% node -v
v25.2.1and my components.json
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": false,
"tailwind": {
"config": "tailwind.config.js",
"css": "src/index.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"iconLibrary": "lucide",
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
},
"registries": {
"@react-bits": "https://reactbits.dev/r/{name}.json"
}
}Validations
- I have checked other issues to see if my issue was already reported or addressed
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working