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

zone.js v0.8.13 Produces Extensive Zone errors in Unit tests-- 'Unhandled Promise rejection:', 'Cannot create property '__creationTrace__' #832

@corvinrok

Description

@corvinrok

Using:

  • zone.js 0.8.13
  • Node 7.10.1
  • Angular 4.2.6
  • rxjs 5.4.2
  • karma 1.7.0
  • Typescript 2.3.4

If I use zone.js 0.8.12 my 111 Client side unit tests work fine. After upgrading to zone.js 0.8.13 I get repeating zone errors as you can see below.

The newest release of zone.js fails extensively on almost all of related Angular unit tests now. I am seeing this throw two errors:

First one:

ERROR: 'Unhandled Promise rejection:', 'Cannot create property '__creationTrace__' on string '__zone_symbol__optimizedZoneEventTask'', '; Zone:', 'ProxyZone', '; Task:', 'Promise.then', '; Value:', TypeError {longStack: 'TypeError: Cannot create property '__creationTrace__' on string '__zone_symbol__optimizedZoneEventTask'
    at Object.onScheduleTask (http://localhost:9876/base/node_modules/zone.js/dist/long-stack-trace-zone.js?76bd579913a209b82c592a4e9924f4696a01ea6f:115:38)
    at ZoneDelegate.scheduleTask (http://localhost:9876/base/node_modules/zone.js/dist/zone.js?88b6003995efe175b0ecfca3880d4b42eebe4e32:404:51)
    at Object.onScheduleTask (http://localhost:9876/base/node_modules/zone.js/dist/zone.js?88b6003995efe175b0ecfca3880d4b42eebe4e32:300:29)
    at ZoneDelegate.scheduleTask (http://localhost:9876/base/node_modules/zone.js/dist/zone.js?88b6003995efe175b0ecfca3880d4b42eebe4e32:404:51)
    at Zone.scheduleTask (http://localhost:9876/base/node_modules/zone.js/dist/zone.js?88b6003995efe175b0ecfca3880d4b42eebe4e32:235:43)
    at Zone.scheduleEventTask (http://localhost:9876/base/node_modules/zone.js/dist/zone.js?88b6003995efe175b0ecfca3880d4b42eebe4e32:261:25)
    at HTMLDivElement.addEventListener (http://localhost:9876/base/node_modules/zone.js/dist/zone.js?88b6003995efe175b0ecfca3880d4b42eebe4e32:1561:29)
    at DomEventsPlugin.19.DomEventsPlugin.addEventListener (http://localhost:9876/base/ClientSide/test/panels/panel-output-window/panel-output-window.component.spec.ts?af87a3836823343a258f1bca0af3058ef4b375a6:35817:17)
    at EventManager.19.EventManager.addEventListener (http://localhost:9876/base/ClientSide/test/panels/panel-output-window/panel-output-window.component.spec.ts?af87a3836823343a258f1bca0af3058ef4b375a6:35155:23)
    at DefaultDomRenderer2.19.DefaultDomRenderer2.listen (http://localhost:9876/base/ClientSide/test/panels/panel-output-window/panel-output-window.component.spec.ts?af87a3836823343a258f1bca0af3058ef4b375a6:35676:36)', ngDebugContext: DebugContext_{view: Object{def: ..., parent: ..., viewContainerParent: ..., parentNodeDef: ..., context: ..., component: ..., nodes: ..., state: ..., root: ..., renderer: ..., oldValues: ..., disposables: ...}, nodeIndex: 0, nodeDef: Object{index: ..., parent: ..., renderParent: ..., bindingIndex: ..., outputIndex: ..., flags: ..., childFlags: ..., directChildFlags: ..., childMatchedQueries: ..., matchedQueries: ..., matchedQueryIds: ..., references: ..., ngContentIndex: ..., childCount: ..., bindings: ..., bindingFlags: ..., outputs: ..., element: ..., provider: ..., text: ..., query:..., ngContent: ...}, elDef: Object{index: ..., parent: ..., renderParent: ..., bindingIndex: ..., outputIndex: ..., flags: ..., childFlags: ..., directChildFlags: ..., childMatchedQueries: ..., matchedQueries: ..., matchedQueryIds: ..., references: ..., ngContentIndex: ..., childCount: ..., bindings: ..., bindingFlags: ..., outputs: ..., element: ..., provider: ..., text: ..., query: ..., ngContent: ...}, elView: Object{def: ..., parent: ..., viewContainerParent: ..., parentNodeDef: ..., context: ..., component: ..., nodes: ..., state: ..., root: ..., renderer: ..., oldValues: ..., disposables: ...}}, ngErrorLogger: function () { ... }, __zone_symbol__currentTask: ZoneTask{_zone: Zone{_properties: ..., _parent: ..., _name: ..., _zoneDelegate: ...}, runCount: 0, _zoneDelegates: null, _state: 'notScheduled', type: 'microTask', source: 'Promise.then', data: undefined, scheduleFn: undefined, cancelFn: null, callback: function () { ... }, invoke: function () { ... }}}, 'TypeError: Cannot create property '__creationTrace__' on string '__zone_symbol__optimizedZoneEventTask'
    at Object.onScheduleTask (http://localhost:9876/base/node_modules/zone.js/dist/long-stack-trace-zone.js?76bd579913a209b82c592a4e9924f4696a01ea6f:115:38)
    at ZoneDelegate.scheduleTask (http://localhost:9876/base/node_modules/zone.js/dist/zone.js?88b6003995efe175b0ecfca3880d4b42eebe4e32:404:51)
    at Object.onScheduleTask (http://localhost:9876/base/node_modules/zone.js/dist/zone.js?88b6003995efe175b0ecfca3880d4b42eebe4e32:300:29)
    at ZoneDelegate.scheduleTask (http://localhost:9876/base/node_modules/zone.js/dist/zone.js?88b6003995efe175b0ecfca3880d4b42eebe4e32:404:51)
    at Zone.scheduleTask (http://localhost:9876/base/node_modules/zone.js/dist/zone.js?88b6003995efe175b0ecfca3880d4b42eebe4e32:235:43)
    at Zone.scheduleEventTask (http://localhost:9876/base/node_modules/zone.js/dist/zone.js?88b6003995efe175b0ecfca3880d4b42eebe4e32:261:25)
    at HTMLDivElement.addEventListener (http://localhost:9876/base/node_modules/zone.js/dist/zone.js?88b6003995efe175b0ecfca3880d4b42eebe4e32:1561:29)
    at DomEventsPlugin.19.DomEventsPlugin.addEventListener (http://localhost:9876/base/ClientSide/test/panels/panel-output-window/panel-output-window.component.spec.ts?af87a3836823343a258f1bca0af3058ef4b375a6:35817:17)
    at EventManager.19.EventManager.addEventListener (http://localhost:9876/base/ClientSide/test/panels/panel-output-window/panel-output-window.component.spec.ts?af87a3836823343a258f1bca0af3058ef4b375a6:35155:23)
    at DefaultDomRenderer2.19.DefaultDomRenderer2.listen (http://localhost:9876/base/ClientSide/test/panels/panel-output-window/panel-output-window.component.spec.ts?af87a3836823343a258f1bca0af3058ef4b375a6:35676:36)'

Second one:

Failed: Cannot create property '__creationTrace__' on string '__zone_symbol__optimizedZoneEventTask'
TypeError: Cannot create property '__creationTrace__' on string '__zone_symbol__optimizedZoneEventTask'
	at Object.onScheduleTask (node_modules/zone.js/dist/long-stack-trace-zone.js:115:38)
	at ZoneDelegate.scheduleTask (node_modules/zone.js/dist/zone.js:404:51)
	at Object.onScheduleTask (node_modules/zone.js/dist/zone.js:300:29)
	at ZoneDelegate.scheduleTask (node_modules/zone.js/dist/zone.js:404:51)
	at Zone.scheduleTask (node_modules/zone.js/dist/zone.js:235:43)
	at Zone.scheduleEventTask (node_modules/zone.js/dist/zone.js:261:25)
	at HTMLDivElement.addEventListener (node_modules/zone.js/dist/zone.js:1561:29)
	at DomEventsPlugin.19.DomEventsPlugin.addEventListener (ClientSide/test/panels/panel-output-window/panel-output-window.component.spec.ts:35817:17)
	at EventManager.19.EventManager.addEventListener (ClientSide/test/panels/panel-output-window/panel-output-window.component.spec.ts:35155:23)
	at DefaultDomRenderer2.19.DefaultDomRenderer2.listen (ClientSide/test/panels/panel-output-window/panel-output-window.component.spec.ts:35676:36)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions