Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Zone JS problem with Edge #436

Closed
debanjanbasu opened this issue Sep 10, 2016 · 5 comments
Closed

Zone JS problem with Edge #436

debanjanbasu opened this issue Sep 10, 2016 · 5 comments
Assignees

Comments

@debanjanbasu
Copy link

I am using the latest EDGE browser, and this is the error I am getting, while loading Zone js

capture

@NeoAdonis
Copy link

NeoAdonis commented Sep 10, 2016

Can confirm. Using latest Edge version (Microsoft EdgeHTML 14.14393). Couldn't reproduce neither in Chrome latest or IE11; it runs just fine both there.

It seems Edge doesn't like calling global['fetch']() (zone.js, line 556) without an argument and ends the script abruptly.

@debanjanbasu
Copy link
Author

Yes, this is a weird error, how come the earlier Zone JS worked perfectly? This is a strange error.

@danhellem
Copy link

+1 on this issue. Works fine in Chrome. I get the same error as above in Edge. Also odd that it works fine in Edge if I reference the Zone.js file like this.

<script src="https://unpkg.com/[email protected]?main=browser"></script>

However, anything over 6.17 breaks in Edge

@wizarrc
Copy link

wizarrc commented Sep 13, 2016

I can confirm that it breaks in Microsoft EdgeHTML 14.393. I modified my local source code repository to
global['fetch']('') and everything now works fine. That seems like a decent workaround/fix to the 44c46fa commit that added this breaking change.

var fetchPromise = global['fetch']();

@debanjanbasu
Copy link
Author

You are right wizarrc, your fix does indeed solve the issue. It is actually right, as EDGE is following very strict checking of es6 features.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants