Error Code Portal
Node.jsNode.jsError code

ERR_CLOSED_MESSAGE_PORT

closed message port

Code ERR_CLOSED_MESSAGE_PORT · An issue reported by Node.js.

There was an attempt to use a MessagePort instance in a closed state, usually after .close() has been called.

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.