Skip to content

fix(components): update the utils path of sidebar components to correct #7213

New issue

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bestlyg
Copy link

@bestlyg bestlyg commented Apr 17, 2025

When I use pnpm dlx shadcn@latest add sidebar --overwrite to add sidebar component into my repo, the utils path of the component always incorrect, cause i updated the utils path in components.json in my repo, like this:

    "aliases": {
        "components": "@/components",
        "utils": "@/shadcn/utils",
        "ui": "@/shadcn/ui",
        "lib": "@/shadcn/lib",
        "hooks": "@/shadcn/hooks"
    },

The utils path of sidebar component will output import { cn } from "@/shadcn/lib/utils".
import { cn } from "@/shadcn/utils". is my expected

Copy link

vercel bot commented Apr 17, 2025

@bestlyg is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant