TypeScript documented errors
Browse documented TypeScript errors with exact messages, troubleshooting context, and practical remediation steps.
Build
Build errors
TS2345Argument is not assignable to the parameter typeTypeScript found a function call where the provided argument type does not match the parameter type.
TS2540Cannot assign to read only propertyTypeScript rejected an assignment because the target property is marked readonly.
TS7016Could not find a declaration file for moduleTypeScript resolved the imported module at runtime but could not find type declarations for it.
TS2604JSX element type does not have any construct or call signaturesTypeScript found a JSX tag whose value is not typed as a valid function component, class component, or intrinsic element.
TS2305Module has no exported memberTypeScript found an import that asks for a named export the target module does not actually export.
TS2571Object is of type unknownTypeScript blocked an operation because the current value is typed as unknown and has not been narrowed to a usable type.
TS7006Parameter implicitly has an any typeTypeScript could not infer a safe type for a parameter and, with noImplicitAny enabled, reported it as an error.
TS2551Property does not exist on type, did you mean another memberTypeScript could not find the referenced property on the current type and suggested a similarly named member.
TS2564Property has no initializer and is not definitely assigned in the constructorTypeScript found a class property that is declared as required but is not initialized at declaration time or guaranteed to be assigned in the constructor.
TS2741Property is missing in type but required in target typeTypeScript found an object that does not include a required property defined by the target type.
TS2698Spread types may only be created from object typesTypeScript rejected an object spread because one of the spread operands is not known to be an object type.
TS2739Type is missing the following properties from the target typeTypeScript found a value whose shape is missing multiple required properties from the target type.
TS2326Types of property are incompatibleTypeScript compared two object types and found that a property with the same name has incompatible types between them.
TS2307TypeScript cannot find moduleTypeScript cannot resolve an import path or its type declarations, which usually blocks compilation and editor tooling at the same time.
TS2304TypeScript cannot find the referenced nameTypeScript could not resolve an identifier because it is not declared in scope or the expected type definitions are not available.
TS2683TypeScript could not determine the type of thisTypeScript could not infer a safe type for this in the current function context, so it treated the implicit any as an error.
TS2339TypeScript could not find the referenced property on the current typeTypeScript could not prove that the current value has the property being accessed, so it blocked the property lookup.
TS7053TypeScript could not safely use the expression to index the target typeTypeScript rejected an indexed access because the key expression is not known to be valid for the target type, so the result cannot be typed safely.
TS2454TypeScript detected a variable used before being assignedTypeScript found code that reads from a variable before every control path guarantees an assignment.
TS2741TypeScript found a required property missing from the provided typeTypeScript rejected a value because it does not include one of the required properties defined by the target type.
TS2322TypeScript found a value that is not assignable to the target typeTypeScript rejected an assignment because the value's type is incompatible with the declared or inferred target type.
TS2345TypeScript found an argument that is not assignable to the parameter typeTypeScript rejected a function call because one of the provided arguments does not match the type expected by the target parameter.
TS2769TypeScript found no overload that matches this callTypeScript checked the available overloaded signatures and found that none of them match the arguments provided at the call site.
TS2554TypeScript found the wrong number of arguments in a function callTypeScript rejected a function or constructor call because the number of provided arguments does not match the declared signature.
TS7006TypeScript parameter implicitly has an any typeTypeScript reported a function parameter with no explicit type and no safe inference under noImplicitAny rules.
TS6133TypeScript reported a value that is declared but never readTypeScript found a local variable, import, or parameter that is declared but not actually used under the current compiler settings.
TS2367TypeScript thinks the comparison appears to be unintentionalTypeScript determined that the compared values cannot both satisfy the condition because their types do not overlap in a way that makes the comparison meaningful.
TS2531TypeScript warns that the object is possibly nullTypeScript found code that uses a value as a non-null object even though strict null checking still allows that value to be null.
TS2532TypeScript warns that the object is possibly undefinedTypeScript found code that uses a value as a defined object even though the type system still allows that value to be undefined.