Open dx1ded opened 1 month ago
I thought I was not configuring properly, seems like that isn't the case. Happy to know I'm not the only one 😂
I ran into this myself and wrote up a fix for it here https://github.com/shadcn-ui/ui/pull/5616
If anyone wants to try my fix I published it to my own npm registry
Just run npx -y https://verdaccio.tobbe.dev/shadcn/-/shadcn-2.1.2-tobbe-20241029-0244.tgz add button
or whatever component you want to try with :)
Describe the bug
Here's my
components.json
file:However, when adding component
cn
is always being imported from~/lib/utils
even though I explicitly specified it from~/shared/lib
.Affected component/components
Every
How to reproduce
components.json
to match mine.npx shadcn@latest add sidebar
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting