Error Code Portal
Node.jsNode.jsError code

ERR_ILLEGAL_CONSTRUCTOR

illegal constructor

Code ERR_ILLEGAL_CONSTRUCTOR · An issue reported by Node.js.

An attempt was made to construct an object using a non-public constructor.

Troubleshooting and diagnostic links

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