Skip to content
JS
Errors

TypeScript errors

TSxxxx compiler errors.

1,407 entries0 written pages
Showing 101 to 150 of 1,407Source: TypeScript diagnosticMessages.json
CodeError
TS1134Variable declaration expected.
TS1135Argument expression expected.
TS1136Property assignment expected.
TS1137Expression or comma expected.
TS1138Parameter declaration expected.
TS1139Type parameter declaration expected.
TS1140Type argument expected.
TS1141String literal expected.
TS1142Line break not permitted here.
TS1144'{' or ';' expected.
TS1145'{' or JSX element expected.
TS1146Declaration expected.
TS1147Import declarations in a namespace cannot reference a module.
TS1148Cannot use imports, exports, or module augmentations when '--module' is 'none'.
TS1149File name '{0}' differs from already included file name '{1}' only in casing.
TS1155'{0}' declarations must be initialized.
TS1156'{0}' declarations can only be declared inside a block.
TS1160Unterminated template literal.
TS1161Unterminated regular expression literal.
TS1162An object member cannot be declared optional.
TS1163A 'yield' expression is only allowed in a generator body.
TS1164Computed property names are not allowed in enums.
TS1165A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type.
TS1166A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type.
TS1168A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type.
TS1169A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type.
TS1170A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.
TS1171A comma expression is not allowed in a computed property name.
TS1172'extends' clause already seen.
TS1173'extends' clause must precede 'implements' clause.
TS1174Classes can only extend a single class.
TS1175'implements' clause already seen.
TS1176Interface declaration cannot have 'implements' clause.
TS1177Binary digit expected.
TS1178Octal digit expected.
TS1179Unexpected token. '{' expected.
TS1180Property destructuring pattern expected.
TS1181Array element destructuring pattern expected.
TS1182A destructuring declaration must have an initializer.
TS1183An implementation cannot be declared in ambient contexts.
TS1184Modifiers cannot appear here.
TS1185Merge conflict marker encountered.
TS1186A rest element cannot have an initializer.
TS1187A parameter property may not be declared using a binding pattern.
TS1188Only a single variable declaration is allowed in a 'for...of' statement.
TS1189The variable declaration of a 'for...in' statement cannot have an initializer.
TS1190The variable declaration of a 'for...of' statement cannot have an initializer.
TS1191An import declaration cannot have modifiers.
TS1192Module '{0}' has no default export.
TS1193An export declaration cannot have modifiers.

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