Skip to content

Tailwind sometimes crashes Angular Dev server on startup when running on Windows #19251

@jakob0fischl

Description

@jakob0fischl

What version of Tailwind CSS are you using?

4.1.16

What build tool (or framework if it abstracts the build tool) are you using?

Angular

What version of Node.js are you using?

v24.11.0 and 22.21.0

What browser are you using?

not relevant

What operating system are you using?

Windows 11 24H2

Reproduction URL

https://github.com/jakob0fischl/tailwind-bug
The only thing done in this repository is going through https://tailwindcss.com/docs/installation/framework-guides/angular

Describe your issue

When running ng server the dev server sometimes immediately crashes during startup, this does not happen when tailwind is not installed. Downgrading to tailwind v4.1.14 resolves the issue. Running the same project on Linux does not have this issue

PS C:\Users\jakob\Desktop\dev\tailwind-bug> pnpm run start

> tailwind-bug@0.0.0 start C:\Users\jakob\Desktop\dev\tailwind-bug
> ng serve

⠋ Building...
 ELIFECYCLE  Command failed with exit code 3221226356.

PS C:\Users\jakob\Desktop\dev\tailwind-bug> npm run start

> tailwind-bug@0.0.0 start
> ng serve

⠋ Building...

When using npm it just stops without any error message, with pnpm there's at least an error code. I tried to reproduce it using postcss directly but didn't manage to so far. Sometimes it takes ~20 attempts to crash, sometimes it crashes 6 times in a row

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions