Error Code Portal
Node.jsNode.jsError code

ERR_INVALID_ARG_TYPE

invalid arg type

Code ERR_INVALID_ARG_TYPE · An issue reported by Node.js.

An argument of the wrong type was passed to a Node.js API.

Troubleshooting and diagnostic links

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