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

Error in web console when using HMR #20855

Closed
mlavaste opened this issue May 19, 2021 · 3 comments · Fixed by #20861
Closed

Error in web console when using HMR #20855

mlavaste opened this issue May 19, 2021 · 3 comments · Fixed by #20861

Comments

@mlavaste
Copy link

Bug Report

Is this a regression?

Yes, the previous version in which this bug was not present was: 11.2.10

Description

An error appear in console when trying to use HMR from a new application (or old after ng update..) in angular 12. The error seems to be related to this webpack issue.

Minimal Reproduction


ng new hmr
cd hmr
ng serve --hmr

Exception or Error


Uncaught TypeError: currentUpdateRuntime is undefined
    webpackHotUpdatehmr12 jsonp chunk loading:48
     runtime.211126977c3b24294bcd.hot-update.js:1

Your Environment

Angular Version:


     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 12.0.0
Node: 14.17.0
Package Manager: npm 6.14.13
OS: win32 x64

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

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1200.0
@angular-devkit/build-angular   12.0.0
@angular-devkit/core            12.0.0
@angular-devkit/schematics      12.0.0
@schematics/angular             12.0.0
rxjs                            6.6.7
typescript                      4.2.4

@gkalpak gkalpak transferred this issue from angular/angular May 19, 2021
@alan-agius4
Copy link
Collaborator

@mlavaste, do I need to modify any particular file to see the mentioned error?

@mlavaste
Copy link
Author

mlavaste commented May 19, 2021

No, you can have the problem with an application created with the CLI without router and css mode.
But sorry, i was not precise, it's in the web console, on Chrome Version 88.0.4324.150 (Official Build) (64-bit)
and Firefox 88.0.1.

@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 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants