Skip to content
JS
Errors

TypeScript errors

TSxxxx compiler errors.

1,407 entries0 written pages
Showing 751 to 800 of 1,407Source: TypeScript diagnosticMessages.json
CodeError
TS2671Cannot augment module '{0}' because it resolves to a non-module entity.
TS2672Cannot assign a '{0}' constructor type to a '{1}' constructor type.
TS2673Constructor of class '{0}' is private and only accessible within the class declaration.
TS2674Constructor of class '{0}' is protected and only accessible within the class declaration.
TS2675Cannot extend a class '{0}'. Class constructor is marked as private.
TS2676Accessors must both be abstract or non-abstract.
TS2677A type predicate's type must be assignable to its parameter's type.
TS2678Type '{0}' is not comparable to type '{1}'.
TS2679A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'.
TS2680A '{0}' parameter must be the first parameter.
TS2681A constructor cannot have a 'this' parameter.
TS2683'this' implicitly has type 'any' because it does not have a type annotation.
TS2684The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'.
TS2685The 'this' types of each signature are incompatible.
TS2686'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead.
TS2687All declarations of '{0}' must have identical modifiers.
TS2688Cannot find type definition file for '{0}'.
TS2689Cannot extend an interface '{0}'. Did you mean 'implements'?
TS2690'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?
TS2692'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible.
TS2693'{0}' only refers to a type, but is being used as a value here.
TS2694Namespace '{0}' has no exported member '{1}'.
TS2695Left side of comma operator is unused and has no side effects.
TS2696The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?
TS2697An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib'...
TS2698Spread types may only be created from object types.
TS2699Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'.
TS2700Rest types may only be created from object types.
TS2701The target of an object rest assignment must be a variable or a property access.
TS2702'{0}' only refers to a type, but is being used as a namespace here.
TS2703The operand of a 'delete' operator must be a property reference.
TS2704The operand of a 'delete' operator cannot be a read-only property.
TS2705An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or...
TS2706Required type parameters may not follow optional type parameters.
TS2707Generic type '{0}' requires between {1} and {2} type arguments.
TS2708Cannot use namespace '{0}' as a value.
TS2709Cannot use namespace '{0}' as a type.
TS2710'{0}' are specified twice. The attribute named '{0}' will be overwritten.
TS2711A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option.
TS2712A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or...
TS2713Cannot 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}'...
TS2714The expression of an export assignment must be an identifier or qualified name in an ambient context.
TS2715Abstract property '{0}' in class '{1}' cannot be accessed in the constructor.
TS2716Type parameter '{0}' has a circular default.
TS2717Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'.
TS2718Duplicate property '{0}'.
TS2719Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated.
TS2720Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?
TS2721Cannot invoke an object which is possibly 'null'.
TS2722Cannot invoke an object which is possibly 'undefined'.

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