Errors
TypeScript errors
TSxxxx compiler errors.
1,407 entries0 written pages
Showing 601 to 650 of 1,407Source: TypeScript diagnosticMessages.json
| Code | Error | Category | Page |
|---|---|---|---|
| TS2495 | Type '{0}' is not an array type or a string type. | Error | Reference |
| TS2496 | The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression. | Error | Reference |
| TS2497 | This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export. | Error | Reference |
| TS2498 | Module '{0}' uses 'export =' and cannot be used with 'export *'. | Error | Reference |
| TS2499 | An interface can only extend an identifier/qualified-name with optional type arguments. | Error | Reference |
| TS2500 | A class can only implement an identifier/qualified-name with optional type arguments. | Error | Reference |
| TS2501 | A rest element cannot contain a binding pattern. | Error | Reference |
| TS2502 | '{0}' is referenced directly or indirectly in its own type annotation. | Error | Reference |
| TS2503 | Cannot find namespace '{0}'. | Error | Reference |
| TS2504 | Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator. | Error | Reference |
| TS2505 | A generator cannot have a 'void' type annotation. | Error | Reference |
| TS2506 | '{0}' is referenced directly or indirectly in its own base expression. | Error | Reference |
| TS2507 | Type '{0}' is not a constructor function type. | Error | Reference |
| TS2508 | No base constructor has the specified number of type arguments. | Error | Reference |
| TS2509 | Base constructor return type '{0}' is not an object type or intersection of object types with statically known members. | Error | Reference |
| TS2510 | Base constructors must all have the same return type. | Error | Reference |
| TS2511 | Cannot create an instance of an abstract class. | Error | Reference |
| TS2512 | Overload signatures must all be abstract or non-abstract. | Error | Reference |
| TS2513 | Abstract method '{0}' in class '{1}' cannot be accessed via super expression. | Error | Reference |
| TS2514 | A tuple type cannot be indexed with a negative value. | Error | Reference |
| TS2515 | Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'. | Error | Reference |
| TS2516 | All declarations of an abstract method must be consecutive. | Error | Reference |
| TS2517 | Cannot assign an abstract constructor type to a non-abstract constructor type. | Error | Reference |
| TS2518 | A 'this'-based type guard is not compatible with a parameter-based type guard. | Error | Reference |
| TS2519 | An async iterator must have a 'next()' method. | Error | Reference |
| TS2520 | Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions. | Error | Reference |
| TS2522 | The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method. | Error | Reference |
| TS2523 | 'yield' expressions cannot be used in a parameter initializer. | Error | Reference |
| TS2524 | 'await' expressions cannot be used in a parameter initializer. | Error | Reference |
| TS2526 | A 'this' type is available only in a non-static member of a class or interface. | Error | Reference |
| TS2527 | The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary. | Error | Reference |
| TS2528 | A module cannot have multiple default exports. | Error | Reference |
| TS2529 | Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions. | Error | Reference |
| TS2530 | Property '{0}' is incompatible with index signature. | Error | Reference |
| TS2531 | Object is possibly 'null'. | Error | Reference |
| TS2532 | Object is possibly 'undefined'. | Error | Reference |
| TS2533 | Object is possibly 'null' or 'undefined'. | Error | Reference |
| TS2534 | A function returning 'never' cannot have a reachable end point. | Error | Reference |
| TS2536 | Type '{0}' cannot be used to index type '{1}'. | Error | Reference |
| TS2537 | Type '{0}' has no matching index signature for type '{1}'. | Error | Reference |
| TS2538 | Type '{0}' cannot be used as an index type. | Error | Reference |
| TS2539 | Cannot assign to '{0}' because it is not a variable. | Error | Reference |
| TS2540 | Cannot assign to '{0}' because it is a read-only property. | Error | Reference |
| TS2542 | Index signature in type '{0}' only permits reading. | Error | Reference |
| TS2543 | Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference. | Error | Reference |
| TS2544 | Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference. | Error | Reference |
| TS2545 | A mixin class must have a constructor with a single rest parameter of type 'any[]'. | Error | Reference |
| TS2547 | The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property. | Error | Reference |
| TS2548 | Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator. | Error | Reference |
| TS2549 | Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator. | Error | Reference |
Other families: JavaScript, Node.js, npm, React, Next.js, Vite, webpack, Jest