Skip to content
JS
Errors

TypeScript errors

TSxxxx compiler errors.

1,407 entries0 written pages
Showing 401 to 450 of 1,407Source: TypeScript diagnosticMessages.json
CodeError
TS1546'await using' declarations are not allowed in ambient contexts.
TS1547'using' declarations are not allowed in 'case' or 'default' clauses unless contained within a block.
TS1548'await using' declarations are not allowed in 'case' or 'default' clauses unless contained within a block.
TS1550An ambient module declaration with import attributes must use a pattern name with an '*' character.
TS1551Import attributes are not allowed on a module augmentation.
TS1552An import attributes type may only contain property signatures.
TS1553An import attributes property must have a type annotation.
TS1554An import attributes property must have a string literal or identifier name.
TS1555An import attributes property must have a string literal type annotation.
TS1556An import attributes property cannot be optional.
TS1557'{0}' is not a valid key for an import attributes type.
TS1558An import attributes property cannot have a 'readonly' modifier.
TS2200The types of '{0}' are incompatible between these types.
TS2201The types returned by '{0}' are incompatible between these types.
TS2202Call signature return types '{0}' and '{1}' are incompatible.
TS2203Construct signature return types '{0}' and '{1}' are incompatible.
TS2204Call signatures with no arguments have incompatible return types '{0}' and '{1}'.
TS2205Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.
TS2206The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.
TS2207The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.
TS2208This type parameter might need an `extends {0}` constraint.
TS2209The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to...
TS2210The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to...
TS2300Duplicate identifier '{0}'.
TS2301Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor.
TS2302Static members cannot reference class type parameters.
TS2303Circular definition of import alias '{0}'.
TS2304Cannot find name '{0}'.
TS2305Module '{0}' has no exported member '{1}'.
TS2306File '{0}' is not a module.
TS2307Cannot find module '{0}' or its corresponding type declarations.
TS2308Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity.
TS2309An export assignment cannot be used in a module with other exported elements.
TS2310Type '{0}' recursively references itself as a base type.
TS2311Cannot find name '{0}'. Did you mean to write this in an async function?
TS2312An interface can only extend an object type or intersection of object types with statically known members.
TS2313Type parameter '{0}' has a circular constraint.
TS2314Generic type '{0}' requires {1} type argument(s).
TS2315Type '{0}' is not generic.
TS2316Global type '{0}' must be a class or interface type.
TS2317Global type '{0}' must have {1} type parameter(s).
TS2318Cannot find global type '{0}'.
TS2319Named property '{0}' of types '{1}' and '{2}' are not identical.
TS2320Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'.
TS2321Excessive stack depth comparing types '{0}' and '{1}'.
TS2322Type '{0}' is not assignable to type '{1}'.
TS2323Cannot redeclare exported variable '{0}'.
TS2324Property '{0}' is missing in type '{1}'.
TS2325Property '{0}' is private in type '{1}' but not in type '{2}'.
TS2326Types of property '{0}' are incompatible.

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