-
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
space-x-3/4 not being generated in JIT (1 and 2 are) #4002
Comments
To extend on this: the same happens for Non-JIT mode works fine btw. |
Yeah we have a non OSS monorepo so that'll be hard, but I'm more than willing to do a screenshare at some time maybe? I'll also dig a bit deeper when I have some time and see if I can isolate it a bit better. |
Yeah hard to schedule a screenshare right now because I'm just kinda at my computer intermittently while taking care of a newborn. If you can create a minimum reproduction that will help. |
Sure thing man, I'll see if I can dig into this a bit more and find what causes it. |
.flex not generated as well |
@nathanjessen Please open an issue with a reproduction, it works for us (tailwindcss.com is using JIT and it uses flex about 5000 times hah) |
@adamwathan fair enough haha. I did a clean react setup and it works so it must be some issue with my app. I'll add a comment if I discover the root cause. |
I've opened an issue for my bug, #4027 . It sure was fun to track that one down 🤷🏻♂️ |
I'm not 100% sure yet, but it looks like classes are getting "purged" by default with JIT (maybe "not all classes get generated" is the better wording). We had some |
@TheDutchCoder Yeah you definitely need to add all source files that could contain classes to your purge config, including MDX files. 99% chance that's the issue here, so going to close, but feel free to re-open with a reproduction if not. |
I'm fairly sure that's the issue, sorry for the bother! |
What version of Tailwind CSS are you using?
2.1.1
What version of Node.js are you using?
v14.16.0
What browser are you using?
Chrome
What operating system are you using?
macOS
Mandatory Slayer song
https://www.youtube.com/watch?v=TU0RIt2TeSg&ab_channel=TheHeavyMetalHD
With a flex layout, the following classes work:
space-x-1
space-x-2
space-x-7
space-x-8
The following don't:
space-x-3
space-x-4
space-x-5
space-x-6
space-x-10
etc.
This is our spacing config:
The text was updated successfully, but these errors were encountered: