TypeError: Cannot convert undefined or null to objectTypeError: Cannot convert undefined or null to object
A built-in method that expects an object received null or undefined instead.
EADDRINUSEThe address (port) is already in use by another process.
Another process is already listening on the specified port. This commonly happens when restarting a server before the old process fully exits, or when another service is using the same port.
Find the process using the port: lsof -i :PORT (Linux/Mac) or netstat -aon | findstr PORT (Windows). Kill the process or choose a different port. Set SO_REUSEADDR on the socket to allow immediate reuse after restart.
// Port already in use
app.listen(3000); // Error: listen EADDRINUSE :::3000TypeError: Cannot convert undefined or null to objectA built-in method that expects an object received null or undefined instead.
TypeError: Cannot add property, object is not extensibleAn attempt was made to add a property to an object that has been made non-extensible.
ERR_TLS_CERT_ALTNAME_INVALIDThe hostname does not match any of the Subject Alternative Names (SANs) in the server's TLS certificate.
EHOSTUNREACHThe target host is unreachable, typically due to network routing issues.
TypeError: x is not a functionAn attempt was made to call a value as a function when it is not a function.
TypeError: Assignment to constant variableAn attempt was made to reassign a variable declared with const.