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•11mo ago
did you by chance use src/ dir?
barry
barry•11mo ago
You’ve gotta show the setup somehow lol This is too vague to go off of
TheBassGuy 🎸
TheBassGuy 🎸•11mo ago
yes src/app/
JEM
JEM•11mo 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 🎸•11mo 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•11mo 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 🎸•11mo ago
I did It also messed up tailwind I changed both components.json and tailwind.config.js still is messed up
Aguilar
Aguilar•11mo ago
i think its best if you show the code people here can't help much if they see nothing 😅
Kyle
Kyle•11mo 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 🎸•11mo ago
wait I will link the repo today, it it private but I can make an example repo and send here