Skip to content
JS
Errors

TypeScript errors

TSxxxx compiler errors.

1,407 entries0 written pages
Showing 851 to 900 of 1,407Source: TypeScript diagnosticMessages.json
CodeError
TS2775Assertions require every name in the call target to be declared with an explicit type annotation.
TS2776Assertions require the call target to be an identifier or qualified name.
TS2777The operand of an increment or decrement operator may not be an optional property access.
TS2778The target of an object rest assignment may not be an optional property access.
TS2779The left-hand side of an assignment expression may not be an optional property access.
TS2780The left-hand side of a 'for...in' statement may not be an optional property access.
TS2781The left-hand side of a 'for...of' statement may not be an optional property access.
TS2783'{0}' is specified more than once, so this usage will be overwritten.
TS2784'get' and 'set' accessors cannot declare 'this' parameters.
TS2785This spread always overwrites this property.
TS2786'{0}' cannot be used as a JSX component.
TS2787Its return type '{0}' is not a valid JSX element.
TS2788Its instance type '{0}' is not a valid JSX element.
TS2789Its element type '{0}' is not a valid JSX element.
TS2790The operand of a 'delete' operator must be optional.
TS2791Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later.
TS2792Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
TS2793The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible.
TS2794Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?
TS2795The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types.
TS2796It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot...
TS2797A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'.
TS2798The declaration was marked as deprecated here.
TS2799Type produces a tuple type that is too large to represent.
TS2800Expression produces a tuple type that is too large to represent.
TS2801This condition will always return true since this '{0}' is always defined.
TS2802Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher.
TS2803Cannot assign to private method '{0}'. Private methods are not writable.
TS2804Duplicate identifier '{0}'. Static and instance elements cannot share the same private name.
TS2806Private accessor was defined without a getter.
TS2807This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading...
TS2808A get accessor must be at least as accessible as the setter
TS2809Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you...
TS2810Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments.
TS2811Initializer for property '{0}'
TS2812Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'.
TS2813Class declaration cannot implement overload list for '{0}'.
TS2814Function with bodies can only merge with classes that are ambient.
TS2815'arguments' cannot be referenced in property initializers or class static initialization blocks.
TS2816Cannot use 'this' in a static property initializer of a decorated class.
TS2817Property '{0}' has no initializer and is not definitely assigned in a class static block.
TS2818Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers.
TS2819Namespace name cannot be '{0}'.
TS2820Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?
TS2821Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'.
TS2822Import assertions cannot be used with type-only imports or exports.
TS2823Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'.
TS2833Cannot find namespace '{0}'. Did you mean '{1}'?
TS2834Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider...
TS2835Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you...

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