You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not an pnpm issue. I've been experiencing this problem in my repo turborepo-shadcn-ui too.
The issue is within the transform-import.ts file.
It seems like that when transforming non-registry imports like @/lib/utils it uses this snippet to replace the alias:
Describe the bug
I have this for my components.json and whenever I install a new component the import for
cn
is alwaysimport { cn } from "~/lib/utils"
Affected component/components
CLI
How to reproduce
components.json
with a newutils
aliaspnpm dlx shadcn@latest add checkbox
)Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting
The text was updated successfully, but these errors were encountered: