Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

pnpm ui add button with invalid import import { cn } from "@repo/lib/utils" #47

Open
walterhu2020 opened this issue Dec 21, 2024 · 2 comments
Labels
wontfix This will not be worked on

Comments

@walterhu2020
Copy link

when run the command: pnpm ui add button in the root project, the button component been updated but the following import path is invalid: import { cn } from "@repo/lib/utils". The expect path is: import { cn } from "@repo/ui/lib/utils"

@tranlehaiquan
Copy link

tranlehaiquan commented Dec 21, 2024

I got the same problem, and still can't solve it. But i found this https://ui.shadcn.com/docs/monorepo. I'm too tired with find different between two project so I just follow the link :).

@dan5py
Copy link
Owner

dan5py commented Dec 21, 2024

Seems like something has changed in the add command that breaks the aliased import.
But as @tranlehaiquan pointed out the CLI now supports monorepos natively so I'm deprecating this template.
Thanks!

@dan5py dan5py closed this as completed Dec 21, 2024
@dan5py dan5py reopened this Dec 21, 2024
@dan5py dan5py added the wontfix This will not be worked on label Dec 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants