Closed Ks89 closed 5 years ago
Duplicate of https://github.com/angular/angular-cli/issues/15152
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.
π Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: 7.x.x
Description
If you create an empty app with
ng new
and you add a lazy loading module, you cannot navigate to it on Safari 10 Mobile (iOS 10.3.3), because it throws this error on console:I already talked about this issue HERE, but the discussion is dead, so I decided to create a new dedicated issue Is it a consequence of the first error "Error: Zone.js has detected that ZoneAwarePromise
(window|global).Promise
has been overwritten" explained here #31816?π¬ Minimal Reproduction
I created a repo to show this issue https://github.com/Ks89/ng-safari10-lazy-issue
However, if you want to create a new project by yourself:
create a new project with
ng new ng-safari10-lazy
with routing and SCSSuse this browserslist file content
Check the output of
npm browserslist
to see if there is 'ios_saf 10.0-10.2':ng build --prod --aot
orng build
When you navigate to the lazy loaded module (for instance with router.navigate(['lazy'])), it will appear the error shown in this issue.
This is the package.json created automatically by
ng new
:If you need more info, feel free to ask.
π₯ Exception or Error
π Your Environment
Anything else relevant? Safari 10 for iPad with iOS 10.3.3, if you need mode info about iPad model feel free to ask.