Angular2 White Screen of Death

When I download my application for the first time (without cache, etc.), it works fine. But when I reload, the page only loads into the application component. any lazy route no longer works.

Updated to the latest angular-cli and angular:

@angular/cli: 1.0.0-beta.30
node: 6.9.5
os: linux x64
@angular/common: 2.4.6
@angular/compiler: 2.4.6
@angular/compiler-cli: 2.4.6
@angular/core: 2.4.6
@angular/forms: 2.4.6
@angular/http: 2.4.6
@angular/platform-browser: 2.4.6
@angular/platform-browser-dynamic: 2.4.6
@angular/router: 3.4.6
@angular/cli: 1.0.0-beta.30
@ngtools/webpack: 1.2.8

Visual Presentation: https://www.youtube.com/watch?v=JqO9P2DnThc&feature=youtu.be

hard reboot with cache removal> works again, and then restart the regular> white screen with only the application component being loaded.

"Angular is in development mode. Let enableProdMode () enable production mode." not displayed when the problem exists.

+4
source share

Source: https://habr.com/ru/post/1669027/


All Articles