Errors
TypeScript errors
TSxxxx compiler errors.
1,407 entries0 written pages
Showing 151 to 200 of 1,407Source: TypeScript diagnosticMessages.json
| Code | Error | Category | Page |
|---|---|---|---|
| TS1194 | Export declarations are not permitted in a namespace. | Error | Reference |
| TS1195 | 'export *' does not re-export a default. | Error | Reference |
| TS1196 | Catch clause variable type annotation must be 'any' or 'unknown' if specified. | Error | Reference |
| TS1197 | Catch clause variable cannot have an initializer. | Error | Reference |
| TS1198 | An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. | Error | Reference |
| TS1199 | Unterminated Unicode escape sequence. | Error | Reference |
| TS1200 | Line terminator not permitted before arrow. | Error | Reference |
| TS1202 | Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"',... | Error | Reference |
| TS1203 | Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. | Error | Reference |
| TS1205 | Re-exporting a type when '{0}' is enabled requires using 'export type'. | Error | Reference |
| TS1206 | Decorators are not valid here. | Error | Reference |
| TS1207 | Decorators cannot be applied to multiple get/set accessors of the same name. | Error | Reference |
| TS1209 | Invalid optional chain from new expression. Did you mean to call '{0}()'? | Error | Reference |
| TS1210 | Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see... | Error | Reference |
| TS1211 | A class declaration without the 'default' modifier must have a name. | Error | Reference |
| TS1212 | Identifier expected. '{0}' is a reserved word in strict mode. | Error | Reference |
| TS1213 | Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode. | Error | Reference |
| TS1214 | Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode. | Error | Reference |
| TS1215 | Invalid use of '{0}'. Modules are automatically in strict mode. | Error | Reference |
| TS1216 | Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules. | Error | Reference |
| TS1218 | Export assignment is not supported when '--module' flag is 'system'. | Error | Reference |
| TS1221 | Generators are not allowed in an ambient context. | Error | Reference |
| TS1222 | An overload signature cannot be declared as a generator. | Error | Reference |
| TS1223 | '{0}' tag already specified. | Error | Reference |
| TS1224 | Signature '{0}' must be a type predicate. | Error | Reference |
| TS1225 | Cannot find parameter '{0}'. | Error | Reference |
| TS1226 | Type predicate '{0}' is not assignable to '{1}'. | Error | Reference |
| TS1227 | Parameter '{0}' is not in the same position as parameter '{1}'. | Error | Reference |
| TS1228 | A type predicate is only allowed in return type position for functions and methods. | Error | Reference |
| TS1229 | A type predicate cannot reference a rest parameter. | Error | Reference |
| TS1230 | A type predicate cannot reference element '{0}' in a binding pattern. | Error | Reference |
| TS1231 | An export assignment must be at the top level of a file or module declaration. | Error | Reference |
| TS1232 | An import declaration can only be used at the top level of a namespace or module. | Error | Reference |
| TS1233 | An export declaration can only be used at the top level of a namespace or module. | Error | Reference |
| TS1234 | An ambient module declaration is only allowed at the top level in a file. | Error | Reference |
| TS1235 | A namespace declaration is only allowed at the top level of a namespace or module. | Error | Reference |
| TS1236 | The return type of a property decorator function must be either 'void' or 'any'. | Error | Reference |
| TS1237 | The return type of a parameter decorator function must be either 'void' or 'any'. | Error | Reference |
| TS1238 | Unable to resolve signature of class decorator when called as an expression. | Error | Reference |
| TS1239 | Unable to resolve signature of parameter decorator when called as an expression. | Error | Reference |
| TS1240 | Unable to resolve signature of property decorator when called as an expression. | Error | Reference |
| TS1241 | Unable to resolve signature of method decorator when called as an expression. | Error | Reference |
| TS1242 | 'abstract' modifier can only appear on a class, method, or property declaration. | Error | Reference |
| TS1243 | '{0}' modifier cannot be used with '{1}' modifier. | Error | Reference |
| TS1244 | Abstract methods can only appear within an abstract class. | Error | Reference |
| TS1245 | Method '{0}' cannot have an implementation because it is marked abstract. | Error | Reference |
| TS1246 | An interface property cannot have an initializer. | Error | Reference |
| TS1247 | A type literal property cannot have an initializer. | Error | Reference |
| TS1248 | A class member cannot have the '{0}' keyword. | Error | Reference |
| TS1249 | A decorator can only decorate a method implementation, not an overload. | Error | Reference |
Other families: JavaScript, Node.js, npm, React, Next.js, Vite, webpack, Jest