Describe the bug
When following the vite project setup guide you will get an error when you get to the step where you run the pnpm dlx shadcn@latest init command. This is due to the index.css missing the tailwind css headers. The documentation needs to be updated at step 2 to.
I've created a pull request with the fix here #4676
Affected component/components
None
How to reproduce
- Follow Documentation for setting up vite react project.
- Get to step 6 and run the command to get the error.
Codesandbox/StackBlitz link
No response
Logs
PS C:\Users\Dwight\Documents\Develop\Typescript\React\pet-form-lhs> npx shadcn@latest init
✔ Preflight checks.
✔ Verifying framework. Found Vite.
✖ Validating Tailwind CSS.
✔ Validating import alias.
No Tailwind CSS configuration found at C:\Users\Dwight\Documents\Develop\Typescript\React\pet-form-lhs.
It is likely you do not have Tailwind CSS installed or have an invalid configuration.
Install Tailwind CSS then try again.
Visit https://tailwindcss.com/docs/guides/vite to get started.
System Info
Before submitting
Describe the bug
When following the vite project setup guide you will get an error when you get to the step where you run the
pnpm dlx shadcn@latest initcommand. This is due to the index.css missing the tailwind css headers. The documentation needs to be updated at step 2 to.I've created a pull request with the fix here #4676
Affected component/components
None
How to reproduce
Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting