-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Angular 19 cannot automatically recover using @apply with Tailwind CSS 4 #29789
Comments
Improves error handling in the PostCSS compilation process to prevent crashes and allow recovery. Closes angular#29789
Improves error handling in the PostCSS compilation process to prevent crashes and allow recovery. Closes angular#29789
Improves error handling in the PostCSS compilation process to prevent crashes and allow recovery. Closes angular#29789 (cherry picked from commit 3e35167)
It still doesn't work properly in a more complex real life Angular application with nested (mutually imported) CSS files. |
Sadly, Angular still exhibits the same issue inside imported child CSS modules.
Playing with valid / invalid |
Can you setup a minimal repro please? You can read here why this is needed. A good way to make a minimal repro is to create a new app via This might be related to your directory structure so its really important to get an accurate repro to diagnose this. |
I tried creating a project on StackBlitz, but it looks like Here is a https://github.com/micobarac/angular19 Reproducing the issue:
I can't tell if this problem resides inside I opened discussion here, too: |
In Tailwind CSS version 4, syntax errors trigger an exception instead of a PostCSS error. This causes PostCSS to crash, preventing it from tracking the files Tailwind processes. As a result, these files aren't added to the file watcher / dependency tree, leading to issues where cached compilation results aren't invalidated when a file changes, since it isn't recognized as a transitive dependency. // cc @clydin |
Closing as there isn’t much we can do here. |
Which @angular/* package(s) are the source of the bug?
compiler
Is this a regression?
No
Description
Angular 19 cannot recover when mistyping class name using
@apply
with Tailwind CSS 4.When I accidentally mistyped class name inside
@apply
, then fixed it, Angular couldn't have automatically recovered.Please provide a link to a minimal reproduction of the bug
tailwind.css
styles.css
application.css
After fixing an error inside...
application.css
Angular doesn't recover and the error remains. I need to restart the app.
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
tailwindlabs/tailwindcss#17077
The text was updated successfully, but these errors were encountered: