You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
New tailwind classes are not added in ng serve without restarting it, while a symlink exists in tailwinds content path.
This issue can be fixed by removing the symlink. Now class changes are added without restarting ng serve.
It does not matter what file type it is, the existence of a symlink is enough to break it.
You will see a red square. Now change bg-red-500 to bg-green-500 -> the square will disappear, as the new tailwind class is not generated. A restart of ng serve will add it.
If you remove the symlink at src/assets/README.md and restart ng serve, the problem above does not appear.
Exception or Error
No response
Your Environment
Node.js version v19.6.0 detected.
Odd numbered Node.js versions will not enter LTS status and should not be used for production. For more information, please see https://nodejs.org/en/about/releases/.
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 15.1.5
Node: 19.6.0 (Unsupported)
Package Manager: npm 8.19.2
OS: linux x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.1501.5 (cli-only)
@angular-devkit/core 15.1.5 (cli-only)
@angular-devkit/schematics 15.1.5 (cli-only)
@schematics/angular 15.1.5 (cli-only)
Warning: The current version of Node (19.6.0) is not supported by Angular.
Hey! This is a super weird one but it looks like a problem with Angular itself. We aren't producing any content or postcss messages that are different whether the symlink is there or not.
On the initial build we are returning the expected content paths from our plugin for postcss-loader to hand off to webpack.
On subsequent builds Tailwind CSS itself isn't called at all by Angular (I'm guessing PostCSS itself isn't called)
This problem is only present when a glob path is passed to postcss-loader AND there is a symlink inside the "root" (non-dynamic) directory of the glob path.
I suspected this was a problem with the persistent cache but disabling the angular cache does not fix this.
All this to say I believe this is an issue with Angular and possibly webpack itself that underlies Angular. I would suggest you open an issue with Angular and see what they can uncover. I can help provide more info to the Angular and/or webpack teams as needed as well.
The text was updated successfully, but these errors were encountered:
Command
serve
Is this a regression?
The previous version in which this bug was not present was
No response
Description
New tailwind classes are not added in ng serve without restarting it, while a symlink exists in tailwinds content path.
This issue can be fixed by removing the symlink. Now class changes are added without restarting ng serve.
It does not matter what file type it is, the existence of a symlink is enough to break it.
Minimal Reproduction
setup new project:
replace html in app.component.ts with following:
start:
You will see a red square. Now change
bg-red-500
tobg-green-500
-> the square will disappear, as the new tailwind class is not generated. A restart ofng serve
will add it.If you remove the symlink at
src/assets/README.md
and restartng serve
, the problem above does not appear.Exception or Error
No response
Your Environment
Anything else relevant?
Issue also occurs on Windows.
Additional information from a tailwind developer: tailwindlabs/tailwindcss#10555 (comment)
The text was updated successfully, but these errors were encountered: