You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, the previous version in which this bug was not present was: 8.1.1
Description
I believe #15087 breaks the nomodule polyfill for older iOS/Safari. The nomodule polyfill script is now deferred by default and does not seem to work unless I remove the defer attribute.
🔥 Exception or Error
In the reproduction above, "Angular is running in the development mode. Call enableProdMode() to enable the production mode." is logged twice indicating that both the es5 and es2015 scripts were executed. You can prove this by added a console.log to main-es5.js and main-es2015.js.
In my internal application:
polyfills-es2015.d441479….js:1 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.)
🔬 Minimal Reproduction
ng new ...
Add "iOS >=10" to browserslist to enable the nomodule polyfill.
ng build
Serve the output files using a static file server.
Open the site in iOS 10 (iPhone 7 Safari for example).
You can remove the defer attribute from the nomodule polyfill script in index.html manually and refresh to see the problem go away.
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: 8.1.1
Description
I believe #15087 breaks the nomodule polyfill for older iOS/Safari. The nomodule polyfill script is now deferred by default and does not seem to work unless I remove the
defer
attribute.🔥 Exception or Error
In the reproduction above, "Angular is running in the development mode. Call enableProdMode() to enable the production mode." is logged twice indicating that both the es5 and es2015 scripts were executed. You can prove this by added a
console.log
tomain-es5.js
andmain-es2015.js
.In my internal application:
🔬 Minimal Reproduction
ng new ...
browserslist
to enable the nomodule polyfill.ng build
defer
attribute from the nomodule polyfill script inindex.html
manually and refresh to see the problem go away.🌍 Your Environment
Anything else relevant?
This happens on iOS 10.3 and probably older.
The text was updated successfully, but these errors were encountered: