shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
74.64k stars 4.64k forks source link

Struggling to make it work with turborepo (mono-repo) #595

Closed singh05 closed 4 months ago

singh05 commented 1 year ago

I am setting up the UI as packages in the turborepo. However, I keep getting the following error:

@app/web:build: ../../packages/ui-shadcn/src/components/react-hook-form/form.tsx
@app/web:build: Module not found: Can't resolve '@/src/components/ui/label'

Any example repository show-casing project setup with common shared UI package in turbo?

dan5py commented 1 year ago

Hey, I recently made this turborepo-starter with shadcn-ui pre-configured. Check it out and let me know if you find any issues.

destino92 commented 1 year ago

https://github.com/juliusmarminge/acme-corp that i use

rodbs commented 1 year ago

@destino92 Why do you bundle and build the ui package locally? doesn't it add extra complexity?

dBianchii commented 1 year ago

Also am struggling with this.

dimfu commented 1 year ago

@singh05 did you manage to solve this issue? I'm facing the same problem and wondering if there's a fix.

me-imfhd commented 1 year ago

@destino92 thanks a lot man i was migrating things from nextjs to turbo, but i had only t3 turbo for reference, and was stuck with tha shadcn since it did't had that, this saved, bro this julius guy man is he the next elon or what @singh05 thanks for opening this issue

me-imfhd commented 1 year ago

@dimfu did it resolved?

harshmangalam commented 9 months ago

I have followed typehero repo to setup shadcn/ui with turborepo https://github.com/typehero/typehero

shadcn commented 4 months ago

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.