Errors
TypeScript errors
TSxxxx compiler errors.
1,407 entries0 written pages
Showing 101 to 150 of 1,407Source: TypeScript diagnosticMessages.json
| Code | Error | Category | Page |
|---|---|---|---|
| TS1134 | Variable declaration expected. | Error | Reference |
| TS1135 | Argument expression expected. | Error | Reference |
| TS1136 | Property assignment expected. | Error | Reference |
| TS1137 | Expression or comma expected. | Error | Reference |
| TS1138 | Parameter declaration expected. | Error | Reference |
| TS1139 | Type parameter declaration expected. | Error | Reference |
| TS1140 | Type argument expected. | Error | Reference |
| TS1141 | String literal expected. | Error | Reference |
| TS1142 | Line break not permitted here. | Error | Reference |
| TS1144 | '{' or ';' expected. | Error | Reference |
| TS1145 | '{' or JSX element expected. | Error | Reference |
| TS1146 | Declaration expected. | Error | Reference |
| TS1147 | Import declarations in a namespace cannot reference a module. | Error | Reference |
| TS1148 | Cannot use imports, exports, or module augmentations when '--module' is 'none'. | Error | Reference |
| TS1149 | File name '{0}' differs from already included file name '{1}' only in casing. | Error | Reference |
| TS1155 | '{0}' declarations must be initialized. | Error | Reference |
| TS1156 | '{0}' declarations can only be declared inside a block. | Error | Reference |
| TS1160 | Unterminated template literal. | Error | Reference |
| TS1161 | Unterminated regular expression literal. | Error | Reference |
| TS1162 | An object member cannot be declared optional. | Error | Reference |
| TS1163 | A 'yield' expression is only allowed in a generator body. | Error | Reference |
| TS1164 | Computed property names are not allowed in enums. | Error | Reference |
| TS1165 | A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type. | Error | Reference |
| TS1166 | A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type. | Error | Reference |
| TS1168 | A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type. | Error | Reference |
| TS1169 | A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type. | Error | Reference |
| TS1170 | A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type. | Error | Reference |
| TS1171 | A comma expression is not allowed in a computed property name. | Error | Reference |
| TS1172 | 'extends' clause already seen. | Error | Reference |
| TS1173 | 'extends' clause must precede 'implements' clause. | Error | Reference |
| TS1174 | Classes can only extend a single class. | Error | Reference |
| TS1175 | 'implements' clause already seen. | Error | Reference |
| TS1176 | Interface declaration cannot have 'implements' clause. | Error | Reference |
| TS1177 | Binary digit expected. | Error | Reference |
| TS1178 | Octal digit expected. | Error | Reference |
| TS1179 | Unexpected token. '{' expected. | Error | Reference |
| TS1180 | Property destructuring pattern expected. | Error | Reference |
| TS1181 | Array element destructuring pattern expected. | Error | Reference |
| TS1182 | A destructuring declaration must have an initializer. | Error | Reference |
| TS1183 | An implementation cannot be declared in ambient contexts. | Error | Reference |
| TS1184 | Modifiers cannot appear here. | Error | Reference |
| TS1185 | Merge conflict marker encountered. | Error | Reference |
| TS1186 | A rest element cannot have an initializer. | Error | Reference |
| TS1187 | A parameter property may not be declared using a binding pattern. | Error | Reference |
| TS1188 | Only a single variable declaration is allowed in a 'for...of' statement. | Error | Reference |
| TS1189 | The variable declaration of a 'for...in' statement cannot have an initializer. | Error | Reference |
| TS1190 | The variable declaration of a 'for...of' statement cannot have an initializer. | Error | Reference |
| TS1191 | An import declaration cannot have modifiers. | Error | Reference |
| TS1192 | Module '{0}' has no default export. | Error | Reference |
| TS1193 | An export declaration cannot have modifiers. | Error | Reference |
Other families: JavaScript, Node.js, npm, React, Next.js, Vite, webpack, Jest