Node.js
Node.js received an argument with the wrong type
Node.js threw because an API received a value of the wrong type, such as a string where a Buffer, URL, or function was expected.
Node.js
Node.js threw because an API received a value of the wrong type, such as a string where a Buffer, URL, or function was expected.
Observed message
TypeError [ERR_INVALID_ARG_TYPE]
Why it happens
How to fix it
Official reference
Node.js Errors: ERR_INVALID_ARG_TYPERelated errors
Explore more