We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{ "$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"
cn
import { cn } from "~/lib/utils"
CLI
components.json
utils
pnpm dlx shadcn@latest add checkbox
No response
MacOS, Vite, React Router 7
The text was updated successfully, but these errors were encountered:
I'm having the same problem with turbopack design-system example. Could be a pnpm issue?
pnpm
My components.json aliases:
"aliases": { "components": "@acme/ui/components", "utils": "@acme/ui/lib/utils", "hooks": "@acme/ui/hooks", "lib": "@acme/ui/lib", "ui": "@acme/ui/components" },
Sorry, something went wrong.
No branches or pull requests
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: