ERR_UNKNOWN_ENCODINGERR_UNKNOWN_ENCODING
An unknown or unsupported encoding was passed to a Node.js API.
TypeError: x is not a functionAn attempt was made to call a value as a function when it is not a function.
The variable you are trying to call is not a function. This often happens when a method name is misspelled, the object does not have that method, a callback is undefined, or a variable was accidentally reassigned from a function to something else.
Check that the variable is actually a function using typeof x === 'function'. Verify the method name spelling. Ensure the object you are calling the method on is the correct type. Check for naming conflicts where a variable shadows a function.
const obj = {}; obj.method(); // TypeError: obj.method is not a functionERR_UNKNOWN_ENCODINGAn unknown or unsupported encoding was passed to a Node.js API.
TypeError: x is not a constructorAn attempt was made to use the new keyword with a value that is not a constructor.
TypeError: x is not iterableA value that is not iterable was used where an iterable was expected, such as in a for...of loop or spread operator.
ECONNREFUSEDThe connection was refused because no server is listening on the target address and port.
DOMException: SecurityErrorA security-sensitive operation was blocked by the browser's security policies.
RangeErrorA value is not within the expected range, such as an invalid array length or exceeding the call stack size.