Skip to content
JS
Errors

JavaScript errors

TypeError, ReferenceError, SyntaxError and RangeError in any runtime.

131 entries0 written pages
Showing 1 to 50 of 131Source: MDN Web Docs
CodeError
AggregateErrorNo Promise in Promise.any was resolved
ErrorPermission denied to access property "x"
InternalErrortoo much recursion
RangeErrorBigInt division by zero
RangeErrorBigInt negative exponent
RangeErrorargument is not a valid code point
RangeErrorform must be one of 'NFC', 'NFD', 'NFKC', or 'NFKD'
RangeErrorinvalid array length
RangeErrorinvalid date
RangeErrorprecision is out of range
RangeErrorradix must be an integer
RangeErrorrepeat count must be less than infinity
RangeErrorrepeat count must be non-negative
RangeErrorx can't be converted to BigInt because it isn't an integer
ReferenceError"x" is not defined
ReferenceErrorassignment to undeclared variable "x"
ReferenceErrorcan't access lexical declaration 'X' before initialization
ReferenceErrormust call super constructor before using 'this' in derived class constructor
ReferenceErrorsuper() called twice in derived class constructor
SyntaxError"0"-prefixed octal literals are deprecated
SyntaxError"use strict" not allowed in function with non-simple parameters
SyntaxError"x" is a reserved identifier
SyntaxError'arguments'/'eval' can't be defined or assigned to in strict mode code
SyntaxErrorJSON.parse: bad parsing
SyntaxErrorUnexpected '#' used outside of class body
SyntaxErrorUnexpected token
SyntaxErrorUsing //@ to indicate sourceURL pragmas is deprecated. Use //# instead
SyntaxError\\ at end of pattern
SyntaxErrora declaration in the head of a for-of loop can't have an initializer
SyntaxErrorapplying the 'delete' operator to an unqualified name is deprecated
SyntaxErrorarguments is not valid in fields
SyntaxErrorawait is only valid in async functions, async generators and modules
SyntaxErrorawait/yield expression can't be used in parameter
SyntaxErrorcannot use ?? unparenthesized within || and && expressions
SyntaxErrorcharacter class escape cannot be used in class range in regular expression
SyntaxErrorcontinue must be inside loop
SyntaxErrorduplicate capture group name in regular expression
SyntaxErrorduplicate formal argument x
SyntaxErrorfor-in loop head declarations may not have initializers
SyntaxErrorfunction statement requires a name
SyntaxErrorfunctions cannot be labelled
SyntaxErrorgetter and setter for private name #x should either be both static or non-static
SyntaxErrorgetter functions must have no arguments
SyntaxErroridentifier starts immediately after numeric literal
SyntaxErrorillegal character
SyntaxErrorimport declarations may only appear at top level of a module
SyntaxErrorincomplete quantifier in regular expression
SyntaxErrorinvalid BigInt syntax
SyntaxErrorinvalid assignment left-hand side
SyntaxErrorinvalid capture group name in regular expression

Other families: Node.js, npm, React, Next.js, TypeScript, Vite, webpack, Jest