Error Code Portal
Node.jsNode.jsError code

ERR_INVALID_THIS

invalid this

Code ERR_INVALID_THIS · An issue reported by Node.js.

A Node.js API function was called with an incompatible this value.

Troubleshooting and diagnostic links

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