shadcn-ui components breaking

Hi, my shadcn ui components worked flawlessly when I installed them, but as soon as I installed a new components, every component broke, please help!
10 Replies
JEM
JEM•2y ago
did you by chance use src/ dir?
barry
barry•2y ago
You’ve gotta show the setup somehow lol This is too vague to go off of
TheBassGuy 🎸
TheBassGuy 🎸OP•2y ago
yes src/app/
JEM
JEM•2y ago
I also had this issue cause the setup pointed at ./app/global.css not ./src/app/global.css edit that in the shadcn ui config and you should be good
TheBassGuy 🎸
TheBassGuy 🎸OP•2y ago
I did that in the cli and the components.json also still doesn't work also, it messed up tailwind, in the whole project
JEM
JEM•2y ago
can you link the code? the cli specificially did not add the /src/ so you still migth need to fix, but sounds like you already went in and changed that line?
TheBassGuy 🎸
TheBassGuy 🎸OP•2y ago
I did It also messed up tailwind I changed both components.json and tailwind.config.js still is messed up
Aguilar
Aguilar•2y ago
i think its best if you show the code people here can't help much if they see nothing 😅
Kyle
Kyle•2y ago
your components.json file likely got fucked up and is pointing to wrong options. My guess is you have your imports wrong that's about all I can say since there isn't any code
TheBassGuy 🎸
TheBassGuy 🎸OP•2y ago
wait I will link the repo today, it it private but I can make an example repo and send here
Want results from more Discord servers?
Add your server