ui icon indicating copy to clipboard operation
ui copied to clipboard

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

Open singh05 opened this issue 1 year ago • 8 comments

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?

singh05 avatar Jun 15 '23 03:06 singh05

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

dan5py avatar Jun 15 '23 23:06 dan5py

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

destino92 avatar Jun 17 '23 20:06 destino92

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

rodbs avatar Jul 04 '23 08:07 rodbs

Also am struggling with this.

dBianchii avatar Jul 20 '23 16:07 dBianchii

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

dimfu avatar Aug 06 '23 08:08 dimfu

@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 avatar Oct 08 '23 17:10 me-imfhd

@dimfu did it resolved?

me-imfhd avatar Oct 08 '23 17:10 me-imfhd

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

harshmangalam avatar Jan 25 '24 18:01 harshmangalam

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 Jun 29 '24 23:06 shadcn