-
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
v2.2.5 not generating global variables #5034
Comments
Hey! Please provide a reproduction repository, this behavior has changed (with JIT only) but is still intended to work, just works differently now: This is in production on tailwindcss.com and all transforms and stuff are working correctly there so there must be something else contributing that isn't captured in this issue. |
@adamwathan here you go: https://codesandbox.io/s/modest-morning-53dm6?file=/src/styles/index.css If you inspect the button element, you'll see the bug I described above. |
Should be fixed in v2.2.6, thank you for helping me find this one! |
Thank you! |
I still have this problem with tailwind 2.2.6 using vite and JIT. Downgrading to 2.2.4 fixed it. |
@mattiaz9 Please open a new issue with a reproduction. |
What version of Tailwind CSS are you using?
v2.2.5
What build tool (or framework if it abstracts the build tool) are you using?
nextjs v11
What version of Node.js are you using?
14
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction repository
https://codesandbox.io/s/modest-morning-53dm6?file=/src/styles/index.css
Describe your issue
After upgrading to the latest patch version, it seems like there is now a bug with the transform property. the CSS being generated:
as you can see, it generated
--tw-translate-y
and--tw-translate-x
but tries to use--tw-transform
which is not available or set anywhere.This is how it's being generated:
UPDATE:
Sorry, i just downgraded and see that it's actually because it's not generating variables for
*, ::after, ::before
The text was updated successfully, but these errors were encountered: