Skip to content

Error in web console when using HMR #20855

Closed
@mlavaste

Description

@mlavaste

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions