How do you setup Shadcn with Create t3?
Out of the box it does not work, if I try to add Button I get this error:
11 Replies
Did you try doing
npm i
or pnpm i
?Yes I've tried it right now but still showing the same error
Ahh @Alejo I think the problem is when I added the Button it did not include the radix library so I had to install it myslef.
I've just got it setup
Going through it, I'd just use cva myself and not use their component lib
I've also had the error, declaring their mod.d.ts helped
Just the way to install it requires manual setup usually, hope you got your difficulties resolved
@josh-dev627 Have you tried reading the error message
It literally says what the problem is
@lukacolic Why are you using asChild Button instead of
Because you can? xD
Just a showcase that it works, I'm not going to use it otherwise
Oh okay aahaha
heheh :3