Drive tutorial V0 import issue

i have tried all the methods but didnt find help can some one help me with this
No description
5 Replies
Andrey Markin
Andrey Markin6d ago
Install Tailwind CSS with Next.js
Setting up Tailwind CSS in a Next.js project.
zitterbewegung
Have you tried doing " npx tailwindcss init " in powershell?
7A7z
7A7z3d ago
Mate try to init Shad on your project first and then try it No thats not the problem @SANJAY MALLADI Trust me just fist initialize Shadcn Ui first and then try to import from v0 is should work , if you need any help with that @ me here first go to your project folder and
npx shadcn@latest init
npx shadcn@latest init
Run this command and chose a theme i suggest zinc and install and packages if need and yk finish the process. Then try to import using v0 This happens cuz ur trying to use shad 2.3 to import the v0 thing so that cli command is trying to initialize Shadcn 2.3 Which doesnt support tailwind v4 . But new nextjs projects use taiwindv4 and doesnt have a tailwindcss.config.mjs file so the cli tol feaks out (cuz tailwind v3 has a tailwindcss.config.mjs file) it things since there isnt a tailwindcss.config.mjs file tailwind isnt installed so you cant install shadcn 2.3. So it says go install tailwind. So the fix is it init shadcn first the latest version (which supports tailwind v4 ) so when the v0 cli tool is running it looks for shad and since there is shad and its a newer version than 2.3 it just rolls with it and doesnt check for tailwindCSS cuz shad is there and its gona work. I tried to make the explanation as simple as possible seeing the noob tag , is you dont understand something feel free to @ me and ask me
SANJAY MALLADI
SANJAY MALLADIOP3d ago
oh... its @7A7z thanks for the explanation
7A7z
7A7z3d ago
np mate happy to help @SANJAY MALLADI

Did you find this page helpful?