-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[Bug]: In CRA projects, Breakpoints not working when [JIT] mode is on #4151
Comments
Same problem in Nuxt 2.15.3. |
I have the same issue. When JIT is on, it creates the class but it doesn't put the class inside a @media breakpoint. When I turn off JIT its working fine. |
Updates: Just tested on the newly released 2.1.2 version of tailwindcss, media query still not working. You can repro the issue with: https://github.com/wonderfulxue/tailwind-jit-bug/tree/2.1.2 |
+1 facing the same issue. |
I'm using Next.js and facing the same issue. |
Hey @wonderfulxue. You didn't quite update
I would recommend running the following commands:
The installation documentation previously said to install both For anyone else having a similar issue: please check that the version you are using is actually |
Hi @bradlc, thank you for pointing out my mistake! I just tried on the "real" tailwindcss v2.1.2, and media query worked great! I have updated the README of my repo: https://github.com/wonderfulxue/tailwind-jit-bug. Close the issue. |
What version of Tailwind CSS are you using?
v2.1.0
What build tool (or framework if it abstracts the build tool) are you using?
Create React App
What version of Node.js are you using?
v12.14.1
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction repository
https://github.com/wonderfulxue/tailwind-jit-bug
Describe your issue
In the CRA bootstrapped project, when turn on the
JIT
mode, the breakpoints of Tailwind CSS is not working. However, whenJIT
mode is off, the breakpoints work just fine.See the bug details at: https://github.com/wonderfulxue/tailwind-jit-bug
The text was updated successfully, but these errors were encountered: