Skip to content
JS
Errors

TypeScript errors

TSxxxx compiler errors.

1,407 entries0 written pages
Showing 701 to 750 of 1,407Source: TypeScript diagnosticMessages.json
CodeError
TS2611'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor.
TS2612Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier...
TS2613Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?
TS2614Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?
TS2615Type of property '{0}' circularly references itself in mapped type '{1}'.
TS2616'{0}' can only be imported by using 'import {1} = require({2})' or a default import.
TS2617'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import.
TS2618Source has {0} element(s) but target requires {1}.
TS2619Source has {0} element(s) but target allows only {1}.
TS2620Target requires {0} element(s) but source may have fewer.
TS2621Target allows only {0} element(s) but source may have more.
TS2623Source provides no match for required element at position {0} in target.
TS2624Source provides no match for variadic element at position {0} in target.
TS2625Variadic element at position {0} in source does not match element at position {1} in target.
TS2626Type at position {0} in source is not compatible with type at position {1} in target.
TS2627Type at positions {0} through {1} in source is not compatible with type at position {2} in target.
TS2628Cannot assign to '{0}' because it is an enum.
TS2629Cannot assign to '{0}' because it is a class.
TS2630Cannot assign to '{0}' because it is a function.
TS2631Cannot assign to '{0}' because it is a namespace.
TS2632Cannot assign to '{0}' because it is an import.
TS2633JSX property access expressions cannot include JSX namespace names
TS2634'{0}' index signatures are incompatible.
TS2635Type '{0}' has no signatures for which the type argument list is applicable.
TS2636Type '{0}' is not assignable to type '{1}' as implied by variance annotation.
TS2637Variance annotations are only supported in type aliases for object, function, constructor, and mapped types.
TS2638Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator.
TS2639React components cannot include JSX namespace names
TS2649Cannot augment module '{0}' with value exports because it resolves to a non-module entity.
TS2650Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more.
TS2651A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums.
TS2652Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead.
TS2653Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'.
TS2654Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}.
TS2655Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more.
TS2656Non-abstract class expression is missing implementations for the following members of '{0}': {1}.
TS2657JSX expressions must have one parent element.
TS2658Type '{0}' provides no match for the signature '{1}'.
TS2659'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher.
TS2660'super' can only be referenced in members of derived classes or object literal expressions.
TS2661Cannot export '{0}'. Only local declarations can be exported from a module.
TS2662Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?
TS2663Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?
TS2664Invalid module name in augmentation, module '{0}' cannot be found.
TS2665Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented.
TS2666Exports and export assignments are not permitted in module augmentations.
TS2667Imports are not permitted in module augmentations. Consider moving them to the enclosing external module.
TS2668'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible.
TS2669Augmentations for the global scope can only be directly nested in external modules or ambient module declarations.
TS2670Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context.

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