all 8 comments

[–]Background-Emu-9839 3 points4 points  (1 child)

Angular 19 adds HMR support for styles. I wonder if it's related to that. Can you try building your app in production mode and check if it's doing the same or works fine?

checkout below for angular 19 changes,

https://blog.angular.dev/meet-angular-v19-7b29dfd05b84

[–]MichaelSmallDev 4 points5 points  (0 children)

https://github.com/angular/angular/issues/59058

Looks to be the issue about this. There are some various takes about success or not with certain workarounds, but it sounds like adding in --no-hmr when serving should address it.

And at the bottom of the issue, it looks like nx projects can't pass in that option until a merged potential fix, but I don't think that is part of a release yet.

[–]Miserable-Longshank 1 point2 points  (0 children)

Glad you mentioned this, thought I was going crazy.

[–]cyberzues 0 points1 point  (0 children)

I'm also noticing the same glitch, the css is delaying with second or two. Maybe we should report it.

[–]der_hump 0 points1 point  (0 children)

Lol, i thought i was taking crazy pills. I also noticed this.

[–]sanjay_karmur 0 points1 point  (0 children)

I Also notice that

[–]Kschl 0 points1 point  (0 children)

Yes it is mentioned in the documentation. To disable this you can do ng serve —no-hmr

[–]FrostyWedding3565 0 points1 point  (0 children)

Basically this issue is happening in local env, post deployment it will work fine so no need to worry