Skip to content
Advertisement

tailwindcss 3 is not loading css in react

i have been using tailwindcss 2 but i wanted to upgrade to 3. I followed their tutorial but is not working i dont know why.

tailwind.config.js

JavaScript

postcss.config.js

JavaScript

index.css

JavaScript

index.css is imported in index.tsx.

index.tsx file

JavaScript

package.json

JavaScript

Text.jsx

JavaScript

enter image description here

Advertisement

Answer

I found the issue, you need to update react-scripts to the latest update npm install react-scripts@latest

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement