Angular CLI HMR with Lazy-Loaded routes hot-reloads the whole thing

前端 未结 2 1568
独厮守ぢ
独厮守ぢ 2021-01-30 12:26

(Confirmed an issue even with Angular 7). Let\'s get this fixed!

I\'m using HMR as set up here: https://github.com/angular/angular-cli/wiki/stories-configure-hmr from

2条回答
  •  无人共我
    2021-01-30 13:02

    Just as a warning to folks getting this issue. I updated angular-cli and hmr stopped working. All it showed is empty page.

    Working:

    "@angular-devkit/build-angular": "0.10.2",
    "@angular/cli": "^7.0.3",
    "@angular/compiler-cli": "^7.0.3",
    

    Not working:

    "@angular-devkit/build-angular": "~0.6.8",
    "@angular/cli": "~7.0.6",
    "@angular/compiler-cli": "^7.1.0",
    

提交回复
热议问题