Errors
TypeScript errors
TSxxxx compiler errors.
1,407 entries0 written pages
Showing 451 to 500 of 1,407Source: TypeScript diagnosticMessages.json
| Code | Error | Category | Page |
|---|---|---|---|
| TS2327 | Property '{0}' is optional in type '{1}' but required in type '{2}'. | Error | Reference |
| TS2328 | Types of parameters '{0}' and '{1}' are incompatible. | Error | Reference |
| TS2329 | Index signature for type '{0}' is missing in type '{1}'. | Error | Reference |
| TS2330 | '{0}' and '{1}' index signatures are incompatible. | Error | Reference |
| TS2331 | 'this' cannot be referenced in a module or namespace body. | Error | Reference |
| TS2332 | 'this' cannot be referenced in current location. | Error | Reference |
| TS2334 | 'this' cannot be referenced in a static property initializer. | Error | Reference |
| TS2335 | 'super' can only be referenced in a derived class. | Error | Reference |
| TS2336 | 'super' cannot be referenced in constructor arguments. | Error | Reference |
| TS2337 | Super calls are not permitted outside constructors or in nested functions inside constructors. | Error | Reference |
| TS2338 | 'super' property access is permitted only in a constructor, member function, or member accessor of a derived class. | Error | Reference |
| TS2339 | Property '{0}' does not exist on type '{1}'. | Error | Reference |
| TS2340 | Only public and protected methods of the base class are accessible via the 'super' keyword. | Error | Reference |
| TS2341 | Property '{0}' is private and only accessible within class '{1}'. | Error | Reference |
| TS2343 | This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'. | Error | Reference |
| TS2344 | Type '{0}' does not satisfy the constraint '{1}'. | Error | Reference |
| TS2345 | Argument of type '{0}' is not assignable to parameter of type '{1}'. | Error | Reference |
| TS2346 | Call target does not contain any signatures. | Error | Reference |
| TS2347 | Untyped function calls may not accept type arguments. | Error | Reference |
| TS2348 | Value of type '{0}' is not callable. Did you mean to include 'new'? | Error | Reference |
| TS2349 | This expression is not callable. | Error | Reference |
| TS2350 | Only a void function can be called with the 'new' keyword. | Error | Reference |
| TS2351 | This expression is not constructable. | Error | Reference |
| TS2352 | Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was... | Error | Reference |
| TS2353 | Object literal may only specify known properties, and '{0}' does not exist in type '{1}'. | Error | Reference |
| TS2354 | This syntax requires an imported helper but module '{0}' cannot be found. | Error | Reference |
| TS2355 | A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value. | Error | Reference |
| TS2356 | An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. | Error | Reference |
| TS2357 | The operand of an increment or decrement operator must be a variable or a property access. | Error | Reference |
| TS2358 | The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter. | Error | Reference |
| TS2359 | The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the... | Error | Reference |
| TS2362 | The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. | Error | Reference |
| TS2363 | The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. | Error | Reference |
| TS2364 | The left-hand side of an assignment expression must be a variable or a property access. | Error | Reference |
| TS2365 | Operator '{0}' cannot be applied to types '{1}' and '{2}'. | Error | Reference |
| TS2366 | Function lacks ending return statement and return type does not include 'undefined'. | Error | Reference |
| TS2367 | This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap. | Error | Reference |
| TS2368 | Type parameter name cannot be '{0}'. | Error | Reference |
| TS2369 | A parameter property is only allowed in a constructor implementation. | Error | Reference |
| TS2370 | A rest parameter must be of an array type. | Error | Reference |
| TS2371 | A parameter initializer is only allowed in a function or constructor implementation. | Error | Reference |
| TS2372 | Parameter '{0}' cannot reference itself. | Error | Reference |
| TS2373 | Parameter '{0}' cannot reference identifier '{1}' declared after it. | Error | Reference |
| TS2374 | Duplicate index signature for type '{0}'. | Error | Reference |
| TS2375 | Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the... | Error | Reference |
| TS2376 | A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized... | Error | Reference |
| TS2377 | Constructors for derived classes must contain a 'super' call. | Error | Reference |
| TS2378 | A 'get' accessor must return a value. | Error | Reference |
| TS2379 | Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined'... | Error | Reference |
| TS2383 | Overload signatures must all be exported or non-exported. | Error | Reference |
Other families: JavaScript, Node.js, npm, React, Next.js, Vite, webpack, Jest