2016-09-16 86 views
5

我在MS Edge中加載我的應用程序時出現腳本錯誤。但是火狐,Chrome,IE11的所有工作,除了邊緣...Angular 2不適用於MS Edge

下面是控制檯的截圖:

enter image description here

在這裏看到:

HTML1300: Navigation occurred. 
localhost:23752 
SCRIPT65535: Argument not optional 
zone.js (556,13) 
SCRIPT257: Could not complete the operation due to error 80020101. 
localhost:23752 (1,1) 
Unhandled Promise rejection: 'Zone' is undefined ; Zone: <root> ; Task:  Promise.then ; Value: ReferenceError: 'Zone' is undefined ReferenceError: 'Zone' is undefined 
at NgZoneImpl (eval code:8749:13) 
at NgZone (eval code:8902:13) 
at PlatformRef_.prototype._bootstrapModuleFactoryWithZone (eval code:9447:17) 
at Anonymous function (eval code:9489:50) 
at ZoneDelegate.prototype.invoke (http://localhost:23752/node_modules/zone.js/dist/zone.js:190:13) 
at Zone.prototype.run (http://localhost:23752/node_modules/zone.js/dist/zone.js:85:17) 
at Anonymous function (http://localhost:23752/node_modules/zone.js/dist/zone.js:451:17) 
at ZoneDelegate.prototype.invokeTask (http://localhost:23752/node_modules/zone.js/dist/zone.js:223:17) 
at Zone.prototype.runTask (http://localhost:23752/node_modules/zone.js/dist/zone.js:125:21) 
at drainMicroTaskQueue (http://localhost:23752/node_modules/zone.js/dist/zone.js:357:25) 
zone.js (344,13) 
"Unhandled Promise rejection:" 
"'Zone' is undefined" 
"; Zone:" 
"<root>" 
"; Task:" 
"Promise.then" 
"; Value:" 
{ 
    [functions]: , 
    __proto__: { }, 
    description: "'Zone' is undefined", 
    message: "'Zone' is undefined", 
    name: "ReferenceError", 
    number: -2146823279, 
    stack: "ReferenceError: 'Zone' is undefined 
at NgZoneImpl (eval code:8749:13) 
at NgZone (eval code:8902:13) 
at PlatformRef_.prototype._bootstrapModuleFactoryWithZone (eval code:9447:17) 
at Anonymous function (eval code:9489:50) 
at ZoneDelegate.prototype.invoke (http://localhost:23752/node_modules/zone.js/dist/zone.js:190:13) 
at Zone.prototype.run (http://localhost:23752/node_modules/zone.js/dist/zone.js:85:17) 
at Anonymous function (http://localhost:23752/node_modules/zone.js/dist/zone.js:451:17) 
at ZoneDelegate.prototype.invokeTask (http://localhost:23752/node_modules/zone.js/dist/zone.js:223:17) 
at Zone.prototype.runTask (http://localhost:23752/node_modules/zone.js/dist/zone.js:125:21) 
at drainMicroTaskQueue (http://localhost:23752/node_modules/zone.js/dist/zone.js:357:25)" 
} 
"ReferenceError: 'Zone' is undefined 
at NgZoneImpl (eval code:8749:13) 
at NgZone (eval code:8902:13) 
at PlatformRef_.prototype._bootstrapModuleFactoryWithZone (eval code:9447:17) 
at Anonymous function (eval code:9489:50) 
at ZoneDelegate.prototype.invoke (http://localhost:23752/node_modules/zone.js/dist/zone.js:190:13) 
at Zone.prototype.run (http://localhost:23752/node_modules/zone.js/dist/zone.js:85:17) 
at Anonymous function (http://localhost:23752/node_modules/zone.js/dist/zone.js:451:17) 
at ZoneDelegate.prototype.invokeTask (http://localhost:23752/node_modules/zone.js/dist/zone.js:223:17) 
at Zone.prototype.runTask (http://localhost:23752/node_modules/zone.js/dist/zone.js:125:21) 
at drainMicroTaskQueue (http://localhost:23752/node_modules/zone.js/dist/zone.js:357:25)" 

Error: Uncaught (in promise): ReferenceError: 'Zone' is undefined 
zone.js (346,9) 
{ 
    [functions]: , 
    __proto__: { }, 
    description: "Uncaught (in promise): ReferenceError: 'Zone' is undefined", 
    message: "Uncaught (in promise): ReferenceError: 'Zone' is undefined", 
    name: "Error", 
    promise: { }, 
    rejection: { }, 
    stack: "Error: Uncaught (in promise): ReferenceError: 'Zone' is undefined 
at resolvePromise (http://localhost:23752/node_modules/zone.js/dist/zone.js:418:25) 
at Anonymous function (http://localhost:23752/node_modules/zone.js/dist/zone.js:454:17) 
at ZoneDelegate.prototype.invokeTask (http://localhost:23752/node_modules/zone.js/dist/zone.js:223:17) 
at Zone.prototype.runTask (http://localhost:23752/node_modules/zone.js/dist/zone.js:125:21) 
at drainMicroTaskQueue (http://localhost:23752/node_modules/zone.js/dist/zone.js:357:25) 
at g (http://localhost:23752/node_modules/core-js/client/shim.min.js:8:10014) 
at Anonymous function (http://localhost:23752/node_modules/core-js/client/shim.min.js:8:10138) 
at k (http://localhost:23752/node_modules/core-js/client/shim.min.js:8:14293)", 
    task: { 
    [functions]: , 
    __proto__: { }, 
    cancelFn: null, 
    data: undefined, 
    runCount: 1, 
    scheduleFn: undefined, 
    source: "Promise.then", 
    type: "microTask", 
    zone: { } 
    }, 
    zone: { 
    [functions]: , 
    __proto__: { }, 
    _name: "<root>", 
    _parent: null, 
    _properties: { }, 
    _zoneDelegate: { }, 
    name: "<root>", 
    parent: null 
    } 
} 

我也注意到了在線556的zone.js中的Argument not optional

這是在

if (NativePromise) { 
    patchThen(NativePromise); 
    if (typeof global['fetch'] !== 'undefined') { 
     var fetchPromise = global['fetch'](); 
     // ignore output to prevent error; 
     fetchPromise.then(function() { return null; }, function() { return null; }); 
     if (fetchPromise.constructor != NativePromise) { 
      patchThen(fetchPromise.constructor); 
     } 
    } 
} 

和具體路線是:

​​

於是就有了令人擔憂的錯誤:「無法完成,由於操作錯誤80020101」

有很多解決方案,這個問題,去除雙斜槓註釋或腳本標籤內的html註釋,但它們都不起作用。

Error 80020101

沒有人有線索?

我正在使用最新的MS內幕預覽邊緣39.14915。

+1

可能是執行方面的fetch'的'的問題。你正在使用預覽版...也許你應該問MS? –

+1

這就是我的想法,我沒有任何沒有安裝內部預覽的電腦,所以我將不得不請求一個朋友測試應用程序。我將在提交bug後確定它與MS Edge有關,而不是用我的代碼 –

回答

2

據證實,這種錯誤是由於與MS邊緣39.14915視窗10內幕預覽特別是在方法global['fetch']();

+0

請鏈接到此處的錯誤信息。我認爲它可以幫助很多人,直到解決方案出來。 –

+0

通過確認我的意思是它的工作在MS Edge沒有開發預覽,我通過反饋集線器提交了錯誤,所以沒有鏈接... –

+0

這個問題也發生在MS Edge 14的最終版本中,不僅限於預習。 ZoneJS更新解決了這個問題。 –

相關問題