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
Alejo
Alejo2y ago
Did you try doing npm i or pnpm i?
josh-dev627
josh-dev6272y ago
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.
Ambushfall
Ambushfall2y ago
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
Ambushfall
Ambushfall2y ago
Ambushfall
Ambushfall2y ago
Ambushfall
Ambushfall2y ago
Just the way to install it requires manual setup usually, hope you got your difficulties resolved
abcdef
abcdef2y ago
@josh-dev627 Have you tried reading the error message It literally says what the problem is
gybia
gybia2y ago
@lukacolic Why are you using asChild Button instead of
<Link className={buttonVariants({ variant: "default" })>
Google
</Link>
<Link className={buttonVariants({ variant: "default" })>
Google
</Link>
Ambushfall
Ambushfall2y ago
Because you can? xD Just a showcase that it works, I'm not going to use it otherwise
gybia
gybia2y ago
Oh okay aahaha
Ambushfall
Ambushfall2y ago
heheh :3
Want results from more Discord servers?
Add your server