SyntaxError: Identifier has already been declaredSyntaxError: Identifier has already been declared
A variable with the same name was declared twice in the same scope using let or const.
ERR_HTTP_HEADERS_SENTAn attempt was made to set headers or send a response after the HTTP response was already sent.
Your code called res.send(), res.json(), res.end(), or set headers after the response was already sent. This commonly happens when a response is sent inside a callback and again outside it, or when middleware does not properly return after sending.
Add return statements after sending responses to prevent further execution: return res.json({...}). Use early returns in middleware. Check your control flow for multiple response paths. Add guards: if (res.headersSent) return.
res.json({ ok: true }); res.json({ error: true }); // ERR_HTTP_HEADERS_SENTSyntaxError: Identifier has already been declaredA variable with the same name was declared twice in the same scope using let or const.
ERR_BUFFER_OUT_OF_BOUNDSAn attempt was made to read or write outside the bounds of a Buffer.
SyntaxError: Unexpected tokenThe parser encountered a token (character or keyword) that was not expected at that position in the code.
SyntaxError: Missing ) after argument listA function call is missing its closing parenthesis.
SyntaxError: Cannot use import statement outside a moduleES module import syntax was used in a file that is not treated as a module.
TypeError: Cannot assign to read only propertyAn attempt was made to write to a property that is read-only, either because the object is frozen or the property is defined as non-writable.