Differential loading breaks in Safari 10.1.2 (12603.3.8)
See original GitHub issue🐞 bug report
Affected Package
The issue is caused by package: not sure if this belongs to @angular/core or @angular/cli
Is this a regression?
Yes, it worked fine before the introduction of differential loading
Description
The application won’t load in Safari 10.1.2 if building with differential loading. It works fine without it.
🔬 Minimal Reproduction
Visit angular.io with Safari 10.1.2. It breaks with "Error: Zone.js has detected that ZoneAwarePromise … has been overwritten. I think it happens because of Safari first loading (runtime|polyfills)-es2015 scripts, and then (runtime|polyfills)-es5 scripts.
🔥 Exception or Error
Error: Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.
Most likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)
assertZonePatched — zone.js.pre-build-optimizer.js:58
t — core.js.pre-build-optimizer.js:26486
bootstrapModuleFactory — core.js.pre-build-optimizer.js:27202
zUnb — main.ts:11
c — bootstrap:83
(anonymous function) — location.service.ts:11
c — bootstrap:83
r — bootstrap:45
(anonymous function) — bootstrap:210
Module Code — bootstrap:215
evaluate
moduleEvaluation
🌍 Your Environment
Angular Version:
Angular CLI: 8.0.1
Node: 10.15.3
OS: linux x64
Angular: 8.0.0
... animations, cdk, common, compiler, compiler-cli, core, forms
... language-service, material, platform-browser
... platform-browser-dynamic, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.800.1
@angular-devkit/build-angular 0.800.1
@angular-devkit/build-optimizer 0.800.1
@angular-devkit/build-webpack 0.800.1
@angular-devkit/core 8.0.1
@angular-devkit/schematics 8.0.1
@angular/cli 8.0.1
@ngtools/webpack 8.0.1
@schematics/angular 8.0.1
@schematics/update 0.800.1
rxjs 6.5.2
typescript 3.4.5
webpack 4.30.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
issue withSafari Version 10.1.2 10603.3.8 - Apple Community
It's our understanding that some pages aren't loading in Safari on your Mac. You've come to the right place! We're happy to help....
Read more >If Safari on Mac doesn't open a webpage or isn't working as ...
If Safari isn't working as you expect, one of these solutions might help. ... Open Safari again and try to load the page....
Read more >Update to the latest version of Safari - Apple Support
If a Safari update is available for your device, you can get it by updating or upgrading macOS, iOS, or iPadOS.
Read more >About the security content of Safari 10.1.2 - Apple Support
This document describes the security content of Safari 10.1.2. ... WebKit Page Loading. Available for: OS X Yosemite 10.10.5, ...
Read more >If Safari isn't loading websites or quits on your iPhone, iPad, or ...
If you can't load a website or webpage, or Safari quits unexpectedly, follow these steps.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There is a fix for that in @angular/cli 8.0.3
https://github.com/angular/angular-cli/commit/56d9adc2a1949226a5ddba719f746f878ff3c7d8
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.