Skip to content
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

Changes made to inline styles are not always reflected to browser with v12. #20904

Closed
1 task done
bogacg opened this issue May 22, 2021 · 1 comment · Fixed by #20920
Closed
1 task done

Changes made to inline styles are not always reflected to browser with v12. #20904

bogacg opened this issue May 22, 2021 · 1 comment · Fixed by #20920
Labels
area: @ngtools/webpack freq1: low Only reported by a handful of users who observe it rarely severity3: broken type: bug/fix
Milestone

Comments

@bogacg
Copy link

bogacg commented May 22, 2021

🐞 Bug report

Command

  • serve

Is this a regression?

I'm not sure, I've been more of a "styles should go to a separate file" type of guy till recently.

Description

When styles are inlined in component, changes made during ng serve are not consistently reflected to browser.

Only first change to inline style gets reflected or changes made to multiple properties/lines (even that one fails from time to time), but not single ones.

Check the provided repo below:

In app/core/pages/home.component.ts trying to change background color of main class and see that it wont be changed on the browser (after first change)

🔬 Minimal Reproduction

Here is an example repo:

https://github.com/bogacg/FantasyCarDealer

🌍 Your Environment


Angular CLI: 12.0.1
Node: 16.1.0
Package Manager: npm 7.13.0
OS: win32 x64

Angular: 12.0.1
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1200.1
@angular-devkit/build-angular   12.0.1
@angular-devkit/core            12.0.1
@angular-devkit/schematics      12.0.1
@schematics/angular             12.0.1
rxjs                            6.6.7
typescript                      4.2.4

Anything else relevant?

I've tested on Chrome & Firefox and same result should be seen on both.

This issue is opened after Originally posted by @alan-agius4 in #20882 (comment)

@alan-agius4 alan-agius4 added area: @ngtools/webpack freq1: low Only reported by a handful of users who observe it rarely severity3: broken type: bug/fix labels May 24, 2021
@ngbot ngbot bot added this to the Backlog milestone May 24, 2021
clydin added a commit to clydin/angular-cli that referenced this issue May 24, 2021
clydin added a commit to clydin/angular-cli that referenced this issue May 24, 2021
clydin added a commit to clydin/angular-cli that referenced this issue May 24, 2021
clydin added a commit that referenced this issue May 25, 2021
clydin added a commit that referenced this issue May 25, 2021
…ata is used during rebuilds

Fixes: #20904
(cherry picked from commit 9433bb6)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 25, 2021
ikjelle pushed a commit to ikjelle/angular-cli that referenced this issue Mar 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: @ngtools/webpack freq1: low Only reported by a handful of users who observe it rarely severity3: broken type: bug/fix
Projects
None yet
2 participants