Skip to content
JS
Errors

TypeScript errors

TSxxxx compiler errors.

1,407 entries0 written pages
Showing 551 to 600 of 1,407Source: TypeScript diagnosticMessages.json
CodeError
TS2437Module '{0}' is hidden by a local declaration with the same name.
TS2438Import name cannot be '{0}'.
TS2439Import or export declaration in an ambient module declaration cannot reference module through relative module name.
TS2440Import declaration conflicts with local declaration of '{0}'.
TS2441Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module.
TS2442Types have separate declarations of a private property '{0}'.
TS2443Property '{0}' is protected but type '{1}' is not a class derived from '{2}'.
TS2444Property '{0}' is protected in type '{1}' but public in type '{2}'.
TS2445Property '{0}' is protected and only accessible within class '{1}' and its subclasses.
TS2446Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'.
TS2447The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead.
TS2448Block-scoped variable '{0}' used before its declaration.
TS2449Class '{0}' used before its declaration.
TS2450Enum '{0}' used before its declaration.
TS2451Cannot redeclare block-scoped variable '{0}'.
TS2452An enum member cannot have a numeric name.
TS2454Variable '{0}' is used before being assigned.
TS2456Type alias '{0}' circularly references itself.
TS2457Type alias name cannot be '{0}'.
TS2458An AMD module cannot have multiple name assignments.
TS2459Module '{0}' declares '{1}' locally, but it is not exported.
TS2460Module '{0}' declares '{1}' locally, but it is exported as '{2}'.
TS2461Type '{0}' is not an array type.
TS2462A rest element must be last in a destructuring pattern.
TS2463A binding pattern parameter cannot be optional in an implementation signature.
TS2464A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
TS2465'this' cannot be referenced in a computed property name.
TS2466'super' cannot be referenced in a computed property name.
TS2467A computed property name cannot reference a type parameter from its containing type.
TS2468Cannot find global value '{0}'.
TS2469The '{0}' operator cannot be applied to type 'symbol'.
TS2472Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher.
TS2473Enum declarations must all be const or non-const.
TS2474const enum member initializers must be constant expressions.
TS2475'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export...
TS2476A const enum member can only be accessed using a string literal.
TS2477'const' enum member initializer was evaluated to a non-finite value.
TS2478'const' enum member initializer was evaluated to disallowed value 'NaN'.
TS2480'let' is not allowed to be used as a name in 'let' or 'const' declarations.
TS2481Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'.
TS2483The left-hand side of a 'for...of' statement cannot use a type annotation.
TS2484Export declaration conflicts with exported declaration of '{0}'.
TS2487The left-hand side of a 'for...of' statement must be a variable or a property access.
TS2488Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator.
TS2489An iterator must have a 'next()' method.
TS2490The type returned by the '{0}()' method of an iterator must have a 'value' property.
TS2491The left-hand side of a 'for...in' statement cannot be a destructuring pattern.
TS2492Cannot redeclare identifier '{0}' in catch clause.
TS2493Tuple type '{0}' of length '{1}' has no element at index '{2}'.
TS2494Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher.

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