Errors
JavaScript errors
TypeError, ReferenceError, SyntaxError and RangeError in any runtime.
131 entries0 written pages
Showing 1 to 50 of 131Source: MDN Web Docs
| Code | Error | Category | Page |
|---|---|---|---|
| AggregateError | No Promise in Promise.any was resolved | AggregateError | Reference |
| Error | Permission denied to access property "x" | DOMException | Reference |
| InternalError | too much recursion | InternalError in Firefox; RangeError in Chrome and Safari | Reference |
| RangeError | BigInt division by zero | RangeError | Reference |
| RangeError | BigInt negative exponent | RangeError | Reference |
| RangeError | argument is not a valid code point | RangeError | Reference |
| RangeError | form must be one of 'NFC', 'NFD', 'NFKC', or 'NFKD' | RangeError | Reference |
| RangeError | invalid array length | RangeError | Reference |
| RangeError | invalid date | RangeError | Reference |
| RangeError | precision is out of range | RangeError | Reference |
| RangeError | radix must be an integer | RangeError | Reference |
| RangeError | repeat count must be less than infinity | RangeError | Reference |
| RangeError | repeat count must be non-negative | RangeError | Reference |
| RangeError | x can't be converted to BigInt because it isn't an integer | RangeError | Reference |
| ReferenceError | "x" is not defined | ReferenceError | Reference |
| ReferenceError | assignment to undeclared variable "x" | ReferenceError in strict mode only | Reference |
| ReferenceError | can't access lexical declaration 'X' before initialization | ReferenceError | Reference |
| ReferenceError | must call super constructor before using 'this' in derived class constructor | ReferenceError | Reference |
| ReferenceError | super() called twice in derived class constructor | ReferenceError | Reference |
| SyntaxError | "0"-prefixed octal literals are deprecated | SyntaxError in strict mode only | Reference |
| SyntaxError | "use strict" not allowed in function with non-simple parameters | SyntaxError | Reference |
| SyntaxError | "x" is a reserved identifier | SyntaxError | Reference |
| SyntaxError | 'arguments'/'eval' can't be defined or assigned to in strict mode code | SyntaxError | Reference |
| SyntaxError | JSON.parse: bad parsing | SyntaxError | Reference |
| SyntaxError | Unexpected '#' used outside of class body | SyntaxError | Reference |
| SyntaxError | Unexpected token | SyntaxError | Reference |
| SyntaxError | Using //@ to indicate sourceURL pragmas is deprecated. Use //# instead | A warning that a SyntaxError occurred. JavaScript execution won't be halted | Reference |
| SyntaxError | \\ at end of pattern | SyntaxError | Reference |
| SyntaxError | a declaration in the head of a for-of loop can't have an initializer | SyntaxError | Reference |
| SyntaxError | applying the 'delete' operator to an unqualified name is deprecated | SyntaxError in strict mode only | Reference |
| SyntaxError | arguments is not valid in fields | SyntaxError | Reference |
| SyntaxError | await is only valid in async functions, async generators and modules | SyntaxError | Reference |
| SyntaxError | await/yield expression can't be used in parameter | SyntaxError | Reference |
| SyntaxError | cannot use ?? unparenthesized within || and && expressions | SyntaxError | Reference |
| SyntaxError | character class escape cannot be used in class range in regular expression | SyntaxError | Reference |
| SyntaxError | continue must be inside loop | SyntaxError | Reference |
| SyntaxError | duplicate capture group name in regular expression | SyntaxError | Reference |
| SyntaxError | duplicate formal argument x | SyntaxError | Reference |
| SyntaxError | for-in loop head declarations may not have initializers | SyntaxError | Reference |
| SyntaxError | function statement requires a name | SyntaxError | Reference |
| SyntaxError | functions cannot be labelled | SyntaxError | Reference |
| SyntaxError | getter and setter for private name #x should either be both static or non-static | SyntaxError | Reference |
| SyntaxError | getter functions must have no arguments | SyntaxError | Reference |
| SyntaxError | identifier starts immediately after numeric literal | SyntaxError | Reference |
| SyntaxError | illegal character | SyntaxError | Reference |
| SyntaxError | import declarations may only appear at top level of a module | SyntaxError | Reference |
| SyntaxError | incomplete quantifier in regular expression | SyntaxError | Reference |
| SyntaxError | invalid BigInt syntax | SyntaxError | Reference |
| SyntaxError | invalid assignment left-hand side | SyntaxError or ReferenceError, depending on the syntax | Reference |
| SyntaxError | invalid capture group name in regular expression | SyntaxError | Reference |
Other families: Node.js, npm, React, Next.js, TypeScript, Vite, webpack, Jest