Closed
Description
Describe the bug
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"css": "app/app.css",
"baseColor": "zinc",
"cssVariables": true,
"prefix": "",
"tsx": true
},
"aliases": {
"components": "~/app/components",
"utils": "~/app/utilities",
"ui": "~/app/components/ui",
"lib": "~/app/utilities",
"hooks": "~/app/hooks"
},
"iconLibrary": "lucide"
}
I have this for my components.json and whenever I install a new component the import for cn
is always import { cn } from "~/lib/utils"
Affected component/components
CLI
How to reproduce
- Install shadcn
- Modify
components.json
with a newutils
alias - Install any component (i.e.:
pnpm dlx shadcn@latest add checkbox
) - Open the checkbox and see that the config wasn't respected
Codesandbox/StackBlitz link
No response
Logs
System Info
MacOS, Vite, React Router 7
Before submitting
- I've made research efforts and searched the documentation
- I've searched for existing issues