tailwindlabs/tailwindcss-jit

PostCSS plugin tailwindcss-jit requires PostCSS 8

MuttakinHasib opened this issue · 3 comments

What version of @tailwindcss/jit are you using?

v0.1.6

What version of Node.js are you using?

v14.15.1

What browser are you using?

firefox, Chrome

What operating system are you using?

macOS

Reproduction repository

https://github.com/MuttakinHasib/cloudsbay

Create React App

http://localhost:3000/

Screen Shot 2021-03-22 at 7 47 41 PM

Screen Shot 2021-03-22 at 7 48 03 PM

Screen Shot 2021-03-22 at 7 48 15 PM

Hey! Yep this project requires PostCSS v8 as the error mentions. You have an error in your postcss.config.js file as well, you don't need tailwindcss and @tailwindcss/jit, just @tailwindcss/jit as mentioned in the instructions 👍🏻

how can i use @tailwindcss/jit in this project ?

Create React App unfortunately uses an old version of PostCSS and isn't kept up to date, so you will have to wait until CRA updates their version of PostCSS or use a different tool.

Personally I would recommend Vite as an alternative for anyone who likes CRA — it's a great experience for building CRA-style projects.