Tailwind class is not working on vite react

so basically tailwind classes is not working on the vite react app


maybe this will solve your problem

This is the official setup for Vite + Tailwindcss

I see you are missing files from the official setup which might cause the problem.

you can simply run

npm install -D tailwindcss postcss autoprefixer

in your existing app, that will update your files.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.