错误代码门户
Node.jsNode.js错误代码

ERR_MESSAGE_TARGET_CONTEXT_UNAVAILABLE

message target context unavailable

代码 ERR_MESSAGE_TARGET_CONTEXT_UNAVAILABLE · Node.js 报告的问题。

发布到 MessagePort 的消息无法在目标虚拟机上下文中反序列化。目前,并非所有 Node.js 对象都可以在任何上下文中成功实例化,在这种情况下,尝试使用 postMessage() 传输它们可能会在接收端失败。

Google Translate · 此内容为自动翻译。技术术语及适用条件请以英文原文为准。

A message posted to a MessagePort could not be deserialized in the target vm Context. Not all Node.js objects can be successfully instantiated in any context at this time, and attempting to transfer them using postMessage() can fail on the receiving side in that case.

故障排除与诊断链接

请先确认文档中的产品、版本及发生环境与当前情况一致。