-
Notifications
You must be signed in to change notification settings - Fork 4.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
flex class not output if a breakpoint variant is used #4027
Comments
For anyone running into the same issue, removing |
@nathanjessen just upgraded to latest version & having same issue as you mentioned. 😔 |
Whats strange, on one of my projects JIT does not add display: flex or grid, but on another, very similar project, JIT works flawlessly :/ |
I'm also seeing this issue with the <div className="w-full bg-gray-100 py-4 px-6 flex items-center justify-between"></div> All of the other classes appear to be detected correctly. |
Hi, For me it is Tailwindcss: tailwindcss/[email protected] |
Looks like JIT generates breakpoints without @media (min-width: 768px) {
.md\:flex {
display: flex;
}
} but is .md\:flex {
display: flex;
} This happens with all classes and breakpoints. |
I am seeing this behaviour too - classes are generated but not within a media query |
Hey @nathanjessen. Looks like this was caused by the bug that was fixed in #4078. I have verified that upgrading
|
What version of Tailwind CSS are you using?
v2.1.0
What version of Node.js are you using?
v14.16.0
What browser are you using?
Brave
What operating system are you using?
Linux
Reproduction repository
https://github.com/nathanjessen/tailwind-jit-bug
Describe your issue
I'm using create-react-app with the instructed modifications for compatability mode and Jit mode enabled. Steps taken are outlined in my Readme file.
The
flex
class is not being output if I use a breakpoint variant.Scenario 1
flex
is used but no variants.Result:
flex
class outputs correctlyScenario 2
flex
andmd:flex
are used.Result:
flex
class is not output.md:flex
is outputScenario 3
flex
is used but no variants.md:flex
is in a commentResult:
flex
doesn't output.md:flex
is outputScenario 4
flex
and asm:flex
variant are used. I changesm:flex
tomd:flex
Result: nothing is output if I'm using the
start
script, but will outputmd:flex
usingbuild
script.The text was updated successfully, but these errors were encountered: