musab
musab
Explore posts from servers
TTCTheo's Typesafe Cult
Created by musab on 3/17/2024 in #questions
Why is create-t3-turbo setup to have shadcn as shared package
So I recently started working on a project with create-t3-clerk and I've initialized shadcn in the nextjs folder, but when I deploy to vercel I'm getting some error: Type error: Cannot find module 'components/ui/button' or its corresponding type declarations. And looking up solutions online made me realize I maybe inited shadcn incorrectly. So I'm curious why the create-t3-turbo repo seems to have ui as a shared package and if there is any reason to not directly init shadcn in the nextjs folder
6 replies