Skip to content
JS
Errors

TypeScript errors

TSxxxx compiler errors.

1,407 entries0 written pages
Showing 1,301 to 1,350 of 1,407Source: TypeScript diagnosticMessages.json
CodeError
TS9036Move the expression in default export to a variable and add a type annotation to it.
TS9037Default exports can't be inferred with --isolatedDeclarations.
TS9038Computed property names on class or object literals cannot be inferred with --isolatedDeclarations.
TS9039Type containing private name '{0}' can't be used with --isolatedDeclarations.
TS17000JSX attributes must only be assigned a non-empty 'expression'.
TS17001JSX elements cannot have multiple attributes with the same name.
TS17002Expected corresponding JSX closing tag for '{0}'.
TS17004Cannot use JSX unless the '--jsx' flag is provided.
TS17005A constructor cannot contain a 'super' call when its class extends 'null'.
TS17006An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the...
TS17007A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in...
TS17008JSX element '{0}' has no corresponding closing tag.
TS17009'super' must be called before accessing 'this' in the constructor of a derived class.
TS17010Unknown type acquisition option '{0}'.
TS17011'super' must be called before accessing a property of 'super' in the constructor of a derived class.
TS17012'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?
TS17013Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor.
TS17014JSX fragment has no corresponding closing tag.
TS17015Expected corresponding closing tag for JSX fragment.
TS17016The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option.
TS17017An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments.
TS17018Unknown type acquisition option '{0}'. Did you mean '{1}'?
TS17019'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?
TS17020'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?
TS17021Unicode escape sequence cannot appear here.
TS18000Circularity detected while resolving configuration: {0}
TS18002The 'files' list in config file '{0}' is empty.
TS18003No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'.
TS18004No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer.
TS18006Classes may not have a field named 'constructor'.
TS18007JSX expressions may not use the comma operator. Did you mean to write an array?
TS18009Private identifiers cannot be used as parameters.
TS18010An accessibility modifier cannot be used with a private identifier.
TS18011The operand of a 'delete' operator cannot be a private identifier.
TS18012'#constructor' is a reserved word.
TS18013Property '{0}' is not accessible outside class '{1}' because it has a private identifier.
TS18014The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same...
TS18015Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'.
TS18016Private identifiers are not allowed outside class bodies.
TS18017The shadowing declaration of '{0}' is defined here
TS18018The declaration of '{0}' that you probably intended to use is defined here
TS18019'{0}' modifier cannot be used with a private identifier.
TS18024An enum member cannot be named with a private identifier.
TS18026'#!' can only be used at the start of a file.
TS18027Compiler reserves name '{0}' when emitting private identifier downlevel.
TS18028Private identifiers are only available when targeting ECMAScript 2015 and higher.
TS18029Private identifiers are not allowed in variable declarations.
TS18030An optional chain cannot contain private identifiers.
TS18031The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents.
TS18032The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some.

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