ui
ui copied to clipboard
Importing from a package of my monorepo does not works
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.
Having this same issue atm.
Make sure to include your component library source in your webapps tailwind config sources. Something like : "../../packages/components/.{.tsx,.jsx}"
Fixed it much appreciated.
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.