Repository navigation
Webpack version 5 HMR not work聽#20288
Description
Activity
- addedfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarely
on Mar 16, 2021 I'm seeing the same on angular 11 with webpack 5.
With the
--hmrarg, I can run the app, but have to refresh after every update to run the new code, and I see this error on every update.If I exclude the
--hmrarg, I can run the app, but have to refresh after every update to run the new code.Angular CLI: 11.2.4 Node: 15.9.0 OS: win32 x64 Angular: 11.2.5 ... animations, common, compiler, compiler-cli, core, forms ... language-service, platform-browser, platform-browser-dynamic ... router Ivy Workspace: Yes Package Version --------------------------------------------------------- @angular-devkit/architect 0.1102.2 @angular-devkit/build-angular 0.1102.4 @angular-devkit/core 11.2.4 @angular-devkit/schematics 11.2.4 @angular/cdk 11.2.4 @angular/cli 11.2.4 @schematics/angular 11.2.4 @schematics/update 0.1102.4 ng-packagr 11.2.4 rxjs 6.6.6 typescript 4.1.5 webpack 5.26.0Reacted by ZHAO Jin-Xiang, Cao Yi and Vinayak PatilAny possible workaround?
Yes: keep running (F5/F8) after the error occurs. And hit refresh after code changes to reload the page, then F5/F8 again to continue running after this error.
It's possible the behavior is different in ng12, but this works for me (ng11 + webpack 5).
- changed the title
[-]Webpack v5 HMR not work[/-][+]Webpack version 5 HMR not work[/+]on Apr 8, 2021 - linked a pull request that will close this issueUpgrade tooling to use Webpack 5 #20466
on Apr 8, 2021 angular-automatic-lock-bot commented
on May 9, 2021 More actionsThis 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.
- locked and limited conversation to collaborators
on May 9, 2021
馃悶 Bug report
Command (mark with an
x)Description
Webpack v5 HMR not work
馃敩 Minimal Reproduction
馃敟 Exception or Error
The page doesn't change automatic and console this error:
And when I refresh page锛宱ne more error:
馃實 Your Environment