-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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]: TailWind Vesrison 4.0 new Update issue with Shadcn/ui vite documentation #6504
Comments
Temporary workaround: |
Same Issue HereThe current shadcn/ui recommended installation and configuration for Vite does not work with TailwindCSS The PS > npx shadcn@latest init
Need to install the following packages:
shadcn@2.3.0
Ok to proceed? (y) y
✔ Preflight checks.
✔ Verifying framework. Found Vite.
✖ Validating Tailwind CSS.
→ This suggests that the `tailwind.config.js` file is missing or improperly configured.
✖ Validating import alias.
→ This indicates that the `tsconfig.json` file does not define an import alias.
No Tailwind CSS configuration found at A:\react-projects\hosting-manager.
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.
No import alias found in your tsconfig.json file.
Visit https://ui.shadcn.com/docs/installation/vite to learn how to set an import alias. Temporary WorkaroundTo resolve this issue temporarily, follow these steps:
This workaround uses TailwindCSS Key Notes:
|
This is not bug instead its shadcn still not configured with tailwindv4
Conslusion:
More :
|
A refined workaround for tailwind v4: add |
I've updated the cli to support Tailwind v4 and React 19. Please test and share your feedback in the following thread: #6585 |
Describe the bug
npx tailwindcss init -p
The above commis and not working in tailwind version 4.0 new update. because tailwind.config file is not included in tailwind version 4.0
Affected component/components
code
How to reproduce
update the documentation
Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting
The text was updated successfully, but these errors were encountered: