Skip to content

Error [ERR_INTERNAL_ASSERTION]: Unknown worker message type message #57123

Closed as not planned
@Saurabh4626

Description

@Saurabh4626

Version

18.19.1

Platform

Darwin 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan  5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T8101 arm64

Subsystem

No response

What steps will reproduce the bug?

Stack Trace
at new NodeError (node:internal/errors:405:5)
at Function.fail (node:internal/assert:20:9)
at [kOnMessage] (node:internal/worker:342:12)
at MessagePort. (node:internal/worker:225:57)
at _ZoneDelegate.invokeTask (node_modules/zone.js/fesm2015/zone.js:403:33)
at ZoneImpl.runTask (node_modules/zone.js/fesm2015/zone.js:159:47)
at ZoneTask.invokeTask [as invoke] (node_modules/zone.js/fesm2015/zone.js:484:34)
at invokeTask (node_modules/zone.js/fesm2015/zone.js:1139:18)
at globalCallback (node_modules/zone.js/fesm2015/zone.js:1170:29)
at MessagePort.globalZoneAwareCallback (node_modules/zone.js/fesm2015/zone.js:1203:16) {
code: 'ERR_INTERNAL_ASSERTION'
}

How often does it reproduce? Is there a required condition?

  • getting this error on below code, when running node server.js
    try { if (type == macroTask && task.data && !isPeriodic && !isRefreshable) { task.cancelFn = undefined; } try { return this._zoneDelegate.invokeTask(this, zoneTask, applyThis, applyArgs); } catch (error) { if (this._zoneDelegate.handleError(this, error)) { throw error; } } }

  • server.js is bundle built using vite

What is the expected behavior? Why is that the expected behavior?

error should not be thrown

What do you see instead?

shared above

Additional information

No response

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