Error Code Portal
Node.jsNode.jsError code

ERR_NAPI_CONS_FUNCTION

napi cons function

Code ERR_NAPI_CONS_FUNCTION · An issue reported by Node.js.

While using Node-API, a constructor passed was not a function.

Troubleshooting and diagnostic links

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