Skip to content
JS
Errors

TypeScript errors

TSxxxx compiler errors.

1,407 entries0 written pages
Showing 451 to 500 of 1,407Source: TypeScript diagnosticMessages.json
CodeError
TS2327Property '{0}' is optional in type '{1}' but required in type '{2}'.
TS2328Types of parameters '{0}' and '{1}' are incompatible.
TS2329Index signature for type '{0}' is missing in type '{1}'.
TS2330'{0}' and '{1}' index signatures are incompatible.
TS2331'this' cannot be referenced in a module or namespace body.
TS2332'this' cannot be referenced in current location.
TS2334'this' cannot be referenced in a static property initializer.
TS2335'super' can only be referenced in a derived class.
TS2336'super' cannot be referenced in constructor arguments.
TS2337Super calls are not permitted outside constructors or in nested functions inside constructors.
TS2338'super' property access is permitted only in a constructor, member function, or member accessor of a derived class.
TS2339Property '{0}' does not exist on type '{1}'.
TS2340Only public and protected methods of the base class are accessible via the 'super' keyword.
TS2341Property '{0}' is private and only accessible within class '{1}'.
TS2343This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'.
TS2344Type '{0}' does not satisfy the constraint '{1}'.
TS2345Argument of type '{0}' is not assignable to parameter of type '{1}'.
TS2346Call target does not contain any signatures.
TS2347Untyped function calls may not accept type arguments.
TS2348Value of type '{0}' is not callable. Did you mean to include 'new'?
TS2349This expression is not callable.
TS2350Only a void function can be called with the 'new' keyword.
TS2351This expression is not constructable.
TS2352Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was...
TS2353Object literal may only specify known properties, and '{0}' does not exist in type '{1}'.
TS2354This syntax requires an imported helper but module '{0}' cannot be found.
TS2355A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value.
TS2356An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type.
TS2357The operand of an increment or decrement operator must be a variable or a property access.
TS2358The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter.
TS2359The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the...
TS2362The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
TS2363The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
TS2364The left-hand side of an assignment expression must be a variable or a property access.
TS2365Operator '{0}' cannot be applied to types '{1}' and '{2}'.
TS2366Function lacks ending return statement and return type does not include 'undefined'.
TS2367This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap.
TS2368Type parameter name cannot be '{0}'.
TS2369A parameter property is only allowed in a constructor implementation.
TS2370A rest parameter must be of an array type.
TS2371A parameter initializer is only allowed in a function or constructor implementation.
TS2372Parameter '{0}' cannot reference itself.
TS2373Parameter '{0}' cannot reference identifier '{1}' declared after it.
TS2374Duplicate index signature for type '{0}'.
TS2375Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the...
TS2376A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized...
TS2377Constructors for derived classes must contain a 'super' call.
TS2378A 'get' accessor must return a value.
TS2379Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined'...
TS2383Overload signatures must all be exported or non-exported.

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