2016-09-16 30 views
5

Tôi gặp phải lỗi tập lệnh khi tải ứng dụng của mình trong MS Edge. Tuy nhiên trình duyệt Firefox, Chrome, IE11 tất cả công việc, ngoại trừ cho Edge ...Góc 2 không hoạt động với MS Edge

Dưới đây là một ảnh chụp màn hình của giao diện điều khiển:

enter image description here

Xem ở đây:

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 
    } 
} 

Những gì tôi cũng nhận thấy là số Argument not optional trong zone.js trên dòng 556

có trong

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); 
     } 
    } 
} 

và dòng cụ thể là:

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

Sau đó là lỗi đáng lo ngại: "Không thể hoàn thành hoạt động do lỗi 80.020.101"

Có rất nhiều giải pháp cho vấn đề đó, xóa các nhận xét bị gạch chéo đôi hoặc nhận xét html bên trong các thẻ tập lệnh, nhưng không có chú thích nào trong số đó hoạt động.

Error 80020101

Có ai có đầu mối không?

Tôi đang sử dụng bản xem trước nội bộ MS mới nhất Cạnh 39.14915.

+1

thể là một vấn đề với việc thực hiện của 'fetch'. Bạn đang sử dụng phiên bản xem trước ... có thể bạn nên hỏi MS? –

+1

Đó là những gì tôi nghĩ, tôi không có bất kỳ máy tính mà không cài đặt trước trong nội bộ, vì vậy tôi sẽ phải yêu cầu một người bạn để kiểm tra các ứng dụng. Tôi sẽ gửi các lỗi sau khi tôi biết chắc chắn nó có cái gì để làm với MS Edge, và không phải với mã của tôi –

Trả lời

2

Nó được xác nhận rằng lỗi này là do Windows 10 Insider xem trước với Ms Cạnh 39,14915 đặc biệt trong phương pháp global['fetch']();

+0

Xin vui lòng liên kết đến các thông tin lỗi ở đây. Tôi nghĩ rằng nó có thể giúp nhiều người cho đến khi sửa chữa xuất hiện. –

+0

Bằng cách xác nhận tôi có nghĩa là nó hoạt động trên MS Edge mà không xem trước dev, tôi đã gửi lỗi thông qua Trung tâm phản hồi, do đó không có liên kết ... –

+0

Vấn đề này đang xảy ra trong bản phát hành cuối cùng của MS Edge 14, không chỉ giới hạn ở xem trước. Bản cập nhật ZoneJS khắc phục sự cố. –

Các vấn đề liên quan