I have created a React+Vite project and trying to install Shadcn in the project (using Ubuntu Linux). However I am not able to add shadcn and every time I follow the steps with the help of their docs it's showing me the following errors:
How can I resolve this?
I have created a React+Vite project and trying to install Shadcn in the project (using Ubuntu Linux). However I am not able to add shadcn and every time I follow the steps with the help of their docs it's showing me the following errors:
How can I resolve this?
The Shadcn installation steps are currently outdated. Tailwind 4 was just released a couple of weeks ago and changed the CLI.
You can either explicitly run Tailwind 3:
npm install -D tailwindcss@3 postcss autoprefixer
npx tailwindcss@3 init -p
or follow Tailwind 4's installation steps for Vite: https://tailwindcss.com/docs/installation/using-vite