Skip to content

hmr not working #27932

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

Closed
1 task
ninja-liu opened this issue Jun 26, 2024 · 2 comments
Closed
1 task

hmr not working #27932

ninja-liu opened this issue Jun 26, 2024 · 2 comments

Comments

@ninja-liu
Copy link

Command

serve

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

running project with cli "ng serve --hmr=true" is not working as expected where change content in html should not trigger the reloading of whole page.

Minimal Reproduction

  1. create one project following angular 17 official doc`s start up.
  2. run the project with "ng serve --hmr=true"
  3. change the inner content of some div tag in app.component.html
  4. there you can realize reloading of the whole page is triggered

Exception or Error

patch the page instead of reloading it

Your Environment

Angular CLI: 17.3.8
Node: 18.16.0
Package Manager: pnpm 8.13.1
OS: win32 x64

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

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1703.8 (cli-only)
@angular-devkit/build-angular   17.3.8
@angular-devkit/core            17.3.8 (cli-only)
@angular-devkit/schematics      17.3.8 (cli-only)
@angular/cli                    17.3.8
@schematics/angular             17.3.8 (cli-only)
rxjs                            7.8.1
typescript                      5.3.3
zone.js                         0.14.6

Anything else relevant?

No response

@alan-agius4
Copy link
Collaborator

Duplicate of angular/angular#39367

@alan-agius4 alan-agius4 marked this as a duplicate of angular/angular#39367 Jun 26, 2024
@alan-agius4 alan-agius4 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 26, 2024
@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 Jul 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants