Attribute noModule is ignored by Safari 10 #14680
Labels
area: devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
🐞 bug report
Affected Package
The issue is caused by the use of the `nomodule` attribute in the `<script>` tag.Is this a regression?
Yes, it was working in Angular 7Description
The build generated by Angular v8 with both
es5
andes2015
flavor cannot be loaded on Safari 10. It's caused by the fact that Safari doesn't seems to acknownledge thenomodule
attribute and so, load both versions which leads to an error:🔬 Minimal Reproduction
You can see a simple (no config) repo here and here, the same site deployed.
🔥 Exception or Error
You can see in the console
🌍 Your Environment
Angular Version: v8.0.0
Anything else relevant?
It seems to be related to Safari ignoring
nomodule
attribute.It affect at least Safari 10.0.0 (on iOS 10.3).
I'll test on more devices but it takes some time (I test on simulator).
I also found this
The text was updated successfully, but these errors were encountered: