Skip to content

Tailwind 4: Can't compile on Docker linux/amd64 #49

@dixpac

Description

@dixpac

After upgrading to latest version 4, I have noticed that building tailwindcss errors out:

Image

I'm building this docker image from mac, but for linux/amd64 arch.
docker build -t cmp --platform linux/amd64 .

This works fine on older tw versions 3.xx, but not on the latest version 4.

Here is the reproduction repo. In this repo there are 2 branches

  • main - runs on tailwind 3
  • tw4 - runs latest tailwind 4

Running docker build -t cmp --platform linux/amd64 . on main branch will work, on branch tw4 will fail.

Reproduction repo is vanilla rails app(rails new cmp ----css tailwind ) with 1 scaffold(user).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions