-
Notifications
You must be signed in to change notification settings - Fork 189
Missing class from precompiled output after building with Docker #546
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
Comments
Installing Node and npm in the same Docker image and trying compiling the CSS yields the correct results. I've installed Node and npm by adding the following after the
|
I see this is a duplicate of tailwindlabs/tailwindcss#17728 and #534. I'll follow along there instead and close this issue. |
Just a note that the underlying cause seems to have been discovered, and there are some workarounds you can try. |
I have a brand new Rails (8.0.2) project with Ruby 3.4.2:
I add a
div
with a class ofmax-h-8
to thelayout/application.html.erb
file.If I now run
tailwindcss
binary, I get:This works. So it shows in my local development just fine.
I now want to deploy my project with a Docker image. I run:
which builds me a Docker image. I build with that platform argument, because I am on an M2 MacBook and want to run the Docker image on a Ubuntu server.
I launch an interactive shell with:
and look at the compiled Tailwind CSS for the class
max-h-8
:This comes up empty! 🚫
If I do the same with another class, say
z-auto
, or evenmax-h-[8px]
it works flawlessly.What am I missing?
The text was updated successfully, but these errors were encountered: