ERR_INVALID_ARG_TYPEERR_INVALID_ARG_TYPE
A Node.js API received an argument of the wrong type.
UnhandledPromiseRejectionA Promise was rejected but no .catch() handler or try-catch block was present to handle the rejection.
A Promise rejected and no rejection handler was attached. This happens when you forget .catch() on a promise chain, do not use try-catch with await, or fire-and-forget async functions without error handling.
Add .catch() to all promise chains. Use try-catch around await calls. Add a global handler: process.on('unhandledRejection', handler) for Node.js or window.addEventListener('unhandledrejection', handler) for browsers.
Promise.reject('oops'); // UnhandledPromiseRejectionWarningERR_INVALID_ARG_TYPEA Node.js API received an argument of the wrong type.
TypeError: Assignment to constant variableAn attempt was made to reassign a variable declared with const.
SyntaxError: Cannot use import statement outside a moduleES module import syntax was used in a file that is not treated as a module.
ERR_INSPECTOR_ALREADY_ACTIVATEDThe Node.js inspector (debugger) was activated more than once.
SyntaxError: Illegal return statementA return statement was used outside of a function body.
DOMException: NetworkErrorA network operation failed, typically during a fetch request when the network is unreachable.