ui icon indicating copy to clipboard operation
ui copied to clipboard

Importing from a package of my monorepo does not works

Open LeAlencar opened this issue 1 year ago • 3 comments

I'm using Turborepo with tailwind and shadcn and weird things are happening. When i import a component from my @packages/ui it does not apply correct styling such as variants. But when i copy the component to my apps/web folder and import into some page it does work, as well as others components imported from my package.

LeAlencar avatar Dec 23 '23 14:12 LeAlencar

Having this same issue atm.

ceriddenn avatar Dec 25 '23 23:12 ceriddenn

Make sure to include your component library source in your webapps tailwind config sources. Something like : "../../packages/components/.{.tsx,.jsx}"

robiot avatar Dec 27 '23 07:12 robiot

Fixed it much appreciated.

ceriddenn avatar Dec 27 '23 19:12 ceriddenn

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.

shadcn avatar Feb 28 '24 23:02 shadcn