Skip to content

JIT mode doesn't load classes #5993

Answered by RobinMalfait
xxSkyy asked this question in Help
Discussion options

You must be logged in to vote

The main reason why downgrading to 2.1.4 works is because we don't have JIT mode in that version yet, so there you will use the old (slow) AOT mode (even if you defined a mode in your tailwind.config.js file, because in that version it is ignored).

The repro provided by @phoenecke uses an old react-scripts version where the TAILWIND_MODE=watch environment variable is required. This is because react-scripts currently ships with PostCSS 7 instead of PostCSS 8.

The good news is that there is an alpha version for react-scripts currently at ^5.0.0-next.47. The bad news is that this version is currently not compatible with @craco/craco.

If you are using Create React App, then here are a few sol…

Replies: 16 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@DAVIDCIOCOIUSIMVENTURE
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by simonswiss
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
Converted from issue

This discussion was converted from issue #5135 on November 05, 2021 13:30.