Skip to content
JS
Errors

TypeScript errors

TSxxxx compiler errors.

1,407 entries0 written pages
Showing 651 to 700 of 1,407Source: TypeScript diagnosticMessages.json
CodeError
TS2550Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or...
TS2551Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?
TS2552Cannot find name '{0}'. Did you mean '{1}'?
TS2553Computed values are not permitted in an enum with string valued members.
TS2554Expected {0} arguments, but got {1}.
TS2555Expected at least {0} arguments, but got {1}.
TS2556A spread argument must either have a tuple type or be passed to a rest parameter.
TS2558Expected {0} type arguments, but got {1}.
TS2559Type '{0}' has no properties in common with type '{1}'.
TS2560Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?
TS2561Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?
TS2562Base class expressions cannot reference class type parameters.
TS2563The containing function or module body is too large for control flow analysis.
TS2564Property '{0}' has no initializer and is not definitely assigned in the constructor.
TS2565Property '{0}' is used before being assigned.
TS2566A rest element cannot have a property name.
TS2567Enum declarations can only merge with namespace or other enum declarations.
TS2568Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?
TS2570Could not find name '{0}'. Did you mean '{1}'?
TS2571Object is of type 'unknown'.
TS2574A rest element type must be an array type.
TS2575No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments.
TS2576Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?
TS2577Return type annotation circularly references itself.
TS2578Unused '@ts-expect-error' directive.
TS2580Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
TS2581Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`.
TS2582Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev...
TS2583Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later.
TS2584Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
TS2585'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler...
TS2588Cannot assign to '{0}' because it is a constant.
TS2589Type instantiation is excessively deep and possibly infinite.
TS2590Expression produces a union type that is too complex to represent.
TS2591Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the...
TS2592Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to...
TS2593Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev...
TS2594This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag.
TS2595'{0}' can only be imported by using a default import.
TS2596'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import.
TS2597'{0}' can only be imported by using a 'require' call or by using a default import.
TS2598'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import.
TS2602JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist.
TS2603Property '{0}' in type '{1}' is not assignable to type '{2}'.
TS2604JSX element type '{0}' does not have any construct or call signatures.
TS2606Property '{0}' of JSX spread attribute is not assignable to target property.
TS2607JSX element class does not support attributes because it does not have a '{0}' property.
TS2608The global type 'JSX.{0}' may not have more than one property.
TS2609JSX spread child must be an array type.
TS2610'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property.

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