Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: #6924

Open
2 tasks done
shorty-huddybuddy opened this issue Mar 14, 2025 · 4 comments
Open
2 tasks done

[bug]: #6924

shorty-huddybuddy opened this issue Mar 14, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@shorty-huddybuddy
Copy link

Describe the bug

npx shadcn@latest init -d

✔ Preflight checks.
✔ Verifying framework. Found Next.js.
✔ Validating Tailwind CSS config. Found v4.
✔ Validating import alias.

Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

Validation failed:

  • tailwind: Required

while installing this issue persists , what to do ?

Affected component/components

tailwind

How to reproduce

npx shadcn@latest init -d

✔ Preflight checks.
✔ Verifying framework. Found Next.js.
✔ Validating Tailwind CSS config. Found v4.
✔ Validating import alias.

Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

Validation failed:

  • tailwind: Required

Codesandbox/StackBlitz link

No response

Logs

System Info

Microsoft

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@shorty-huddybuddy shorty-huddybuddy added the bug Something isn't working label Mar 14, 2025
@ariel-nathan
Copy link

Seeing the same issue using Bun and Vite.
Tried initializing in a brand new empty project using bun create vite@latest --template react-ts.

Followed the docs:

  • Added @import "tailwindcss"; to the top of the src/index.css file
  • Updated both tsconfig.json and tsconfig.app.json with the path aliases
  • Updated the vite config with the tailwindcss vite plugin and the path alias

I also verified that TailwindCSS is actually working by adding some styles.

CLI output:

> bunx --bun shadcn@latest init -d
✔ Preflight checks.
✔ Verifying framework. Found Vite.
✔ Validating Tailwind CSS config. Found v4.
✔ Validating import alias.

Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

Validation failed:
- tailwind: Required

@ariel-nathan
Copy link

If I exclude the -d flag from bunx --bun shadcn@latest init, and manually choose a color, it initializes successfully.

@body20002
Copy link

I have the same issue running pnpm shadcn@latest init -d fails while pnpm shadcn@latest init initializes successfully.

@marcospassos
Copy link

Same error here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants