Skip to content
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

[JIT]: FLEX CLASS NOT WORKING #4131

Closed
maupeon opened this issue Apr 20, 2021 · 8 comments
Closed

[JIT]: FLEX CLASS NOT WORKING #4131

maupeon opened this issue Apr 20, 2021 · 8 comments

Comments

@maupeon
Copy link

maupeon commented Apr 20, 2021

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?

"postcss-cli": "^8.3.1"

What version of Node.js are you using?

v12.19.0

What browser are you using?

Chrome

What operating system are you using?

macOs

https://github.com/maupeon/example-tailwind

Describe your issue

I am adding "flex" class in my react app project and for some reason, it doesn't read it, I changed to JIT mode and some styles are not working as they used to.

@maupeon
Copy link
Author

maupeon commented Apr 20, 2021

Captura de Pantalla 2021-04-20 a la(s) 3 01 36 p m

@maupeon
Copy link
Author

maupeon commented Apr 20, 2021

It has a flex class, but the icon is not moving

@maupeon maupeon changed the title [Bug]: [JIT]: FLEX CLASS NOT WORKING Apr 20, 2021
@adamwathan
Copy link
Member

Hey! Unfortunately we can't help without a reproduction. You don't need to share your actual project, you just need to make a new sample project that includes whatever is required to reproduce the bug.

This is likely due to you missing things in your purge configuration, but impossible to tell without a reproduction.

@maupeon
Copy link
Author

maupeon commented Apr 20, 2021

@adamwathan Thanks a lot ! I will try to reproduce it and come back.

@unigazer
Copy link

This happens with "create-react-app", but everything is ok with "Next.js". Not sure about other SSR React libraries.

@maupeon
Copy link
Author

maupeon commented Apr 21, 2021

@adamwathan I have just reproduced the issue in this repository : https://github.com/maupeon/example-tailwind

@maupeon
Copy link
Author

maupeon commented Apr 21, 2021

This happens with "create-react-app", but everything is ok with "Next.js". Not sure about other SSR React libraries.

@unigazer Thanks for the answer! But for now I am using create-react-app and I need a solution

@bradlc
Copy link
Contributor

bradlc commented Apr 26, 2021

Thanks for providing a reproduction! I have confirmed that #4078 fixes your issue. If you update to v2.1.2 it should work fine 👍

@bradlc bradlc closed this as completed Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants