Errors
TypeScript errors
TSxxxx compiler errors.
1,407 entries0 written pages
Showing 751 to 800 of 1,407Source: TypeScript diagnosticMessages.json
| Code | Error | Category | Page |
|---|---|---|---|
| TS2671 | Cannot augment module '{0}' because it resolves to a non-module entity. | Error | Reference |
| TS2672 | Cannot assign a '{0}' constructor type to a '{1}' constructor type. | Error | Reference |
| TS2673 | Constructor of class '{0}' is private and only accessible within the class declaration. | Error | Reference |
| TS2674 | Constructor of class '{0}' is protected and only accessible within the class declaration. | Error | Reference |
| TS2675 | Cannot extend a class '{0}'. Class constructor is marked as private. | Error | Reference |
| TS2676 | Accessors must both be abstract or non-abstract. | Error | Reference |
| TS2677 | A type predicate's type must be assignable to its parameter's type. | Error | Reference |
| TS2678 | Type '{0}' is not comparable to type '{1}'. | Error | Reference |
| TS2679 | A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'. | Error | Reference |
| TS2680 | A '{0}' parameter must be the first parameter. | Error | Reference |
| TS2681 | A constructor cannot have a 'this' parameter. | Error | Reference |
| TS2683 | 'this' implicitly has type 'any' because it does not have a type annotation. | Error | Reference |
| TS2684 | The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'. | Error | Reference |
| TS2685 | The 'this' types of each signature are incompatible. | Error | Reference |
| TS2686 | '{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead. | Error | Reference |
| TS2687 | All declarations of '{0}' must have identical modifiers. | Error | Reference |
| TS2688 | Cannot find type definition file for '{0}'. | Error | Reference |
| TS2689 | Cannot extend an interface '{0}'. Did you mean 'implements'? | Error | Reference |
| TS2690 | '{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'? | Error | Reference |
| TS2692 | '{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible. | Error | Reference |
| TS2693 | '{0}' only refers to a type, but is being used as a value here. | Error | Reference |
| TS2694 | Namespace '{0}' has no exported member '{1}'. | Error | Reference |
| TS2695 | Left side of comma operator is unused and has no side effects. | Error | Reference |
| TS2696 | The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead? | Error | Reference |
| TS2697 | An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib'... | Error | Reference |
| TS2698 | Spread types may only be created from object types. | Error | Reference |
| TS2699 | Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'. | Error | Reference |
| TS2700 | Rest types may only be created from object types. | Error | Reference |
| TS2701 | The target of an object rest assignment must be a variable or a property access. | Error | Reference |
| TS2702 | '{0}' only refers to a type, but is being used as a namespace here. | Error | Reference |
| TS2703 | The operand of a 'delete' operator must be a property reference. | Error | Reference |
| TS2704 | The operand of a 'delete' operator cannot be a read-only property. | Error | Reference |
| TS2705 | An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or... | Error | Reference |
| TS2706 | Required type parameters may not follow optional type parameters. | Error | Reference |
| TS2707 | Generic type '{0}' requires between {1} and {2} type arguments. | Error | Reference |
| TS2708 | Cannot use namespace '{0}' as a value. | Error | Reference |
| TS2709 | Cannot use namespace '{0}' as a type. | Error | Reference |
| TS2710 | '{0}' are specified twice. The attribute named '{0}' will be overwritten. | Error | Reference |
| TS2711 | A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option. | Error | Reference |
| TS2712 | A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or... | Error | Reference |
| TS2713 | Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}'... | Error | Reference |
| TS2714 | The expression of an export assignment must be an identifier or qualified name in an ambient context. | Error | Reference |
| TS2715 | Abstract property '{0}' in class '{1}' cannot be accessed in the constructor. | Error | Reference |
| TS2716 | Type parameter '{0}' has a circular default. | Error | Reference |
| TS2717 | Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'. | Error | Reference |
| TS2718 | Duplicate property '{0}'. | Error | Reference |
| TS2719 | Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated. | Error | Reference |
| TS2720 | Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass? | Error | Reference |
| TS2721 | Cannot invoke an object which is possibly 'null'. | Error | Reference |
| TS2722 | Cannot invoke an object which is possibly 'undefined'. | Error | Reference |
Other families: JavaScript, Node.js, npm, React, Next.js, Vite, webpack, Jest