Skip to content

New classes not added when symlink is present #10555

@bagbag

Description

@bagbag

What version of Tailwind CSS are you using?

v3.2.6

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

Angular 15.1.4

What version of Node.js are you using?

v19.6.0

What browser are you using?

Chrome

What operating system are you using?

Linux

Reproduction URL

https://github.com/bagbag/tailwind-symlink-bug

Describe your issue

The project is a minimal angular project (--minimal) with only tailwind added.

The project has 2 changes:

  1. Added tailwind classes to index.html and app.component.ts
  2. Symlink: ln -s ../../node_modules/@angular/core/README.md assets/README.md

New tailwind classes are not added in ng serve without restarting it. Try to change bg-red-500 to bg-green-500 in app.component.ts. The sqaure will disappear as bg-green-500 is not added to the css output.

This issue can be fixed by removing the symlink. Now class changes are added without restarting ng serve (may even require rm -rf .angular).

It does not matter what file type it is, the existence of a symlink is enough to break it.

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