Errors
TypeScript errors
TSxxxx compiler errors.
1,407 entries0 written pages
Showing 51 to 100 of 1,407Source: TypeScript diagnosticMessages.json
| Code | Error | Category | Page |
|---|---|---|---|
| TS1065 | The return type of an async function or method must be the global Promise<T> type. | Error | Reference |
| TS1066 | In ambient enum declarations member initializer must be constant expression. | Error | Reference |
| TS1068 | Unexpected token. A constructor, method, accessor, or property was expected. | Error | Reference |
| TS1069 | Unexpected token. A type parameter name was expected without curly braces. | Error | Reference |
| TS1070 | '{0}' modifier cannot appear on a type member. | Error | Reference |
| TS1071 | '{0}' modifier cannot appear on an index signature. | Error | Reference |
| TS1079 | A '{0}' modifier cannot be used with an import declaration. | Error | Reference |
| TS1084 | Invalid 'reference' directive syntax. | Error | Reference |
| TS1089 | '{0}' modifier cannot appear on a constructor declaration. | Error | Reference |
| TS1090 | '{0}' modifier cannot appear on a parameter. | Error | Reference |
| TS1091 | Only a single variable declaration is allowed in a 'for...in' statement. | Error | Reference |
| TS1092 | Type parameters cannot appear on a constructor declaration. | Error | Reference |
| TS1093 | Type annotation cannot appear on a constructor declaration. | Error | Reference |
| TS1094 | An accessor cannot have type parameters. | Error | Reference |
| TS1095 | A 'set' accessor cannot have a return type annotation. | Error | Reference |
| TS1096 | An index signature must have exactly one parameter. | Error | Reference |
| TS1097 | '{0}' list cannot be empty. | Error | Reference |
| TS1098 | Type parameter list cannot be empty. | Error | Reference |
| TS1099 | Type argument list cannot be empty. | Error | Reference |
| TS1100 | Invalid use of '{0}' in strict mode. | Error | Reference |
| TS1101 | 'with' statements are not allowed in strict mode. | Error | Reference |
| TS1102 | 'delete' cannot be called on an identifier in strict mode. | Error | Reference |
| TS1103 | 'for await' loops are only allowed within async functions and at the top levels of modules. | Error | Reference |
| TS1104 | A 'continue' statement can only be used within an enclosing iteration statement. | Error | Reference |
| TS1105 | A 'break' statement can only be used within an enclosing iteration or switch statement. | Error | Reference |
| TS1106 | The left-hand side of a 'for...of' statement may not be 'async'. | Error | Reference |
| TS1107 | Jump target cannot cross function boundary. | Error | Reference |
| TS1108 | A 'return' statement can only be used within a function body. | Error | Reference |
| TS1109 | Expression expected. | Error | Reference |
| TS1110 | Type expected. | Error | Reference |
| TS1111 | Private field '{0}' must be declared in an enclosing class. | Error | Reference |
| TS1113 | A 'default' clause cannot appear more than once in a 'switch' statement. | Error | Reference |
| TS1114 | Duplicate label '{0}'. | Error | Reference |
| TS1115 | A 'continue' statement can only jump to a label of an enclosing iteration statement. | Error | Reference |
| TS1116 | A 'break' statement can only jump to a label of an enclosing statement. | Error | Reference |
| TS1117 | An object literal cannot have multiple properties with the same name. | Error | Reference |
| TS1118 | An object literal cannot have multiple get/set accessors with the same name. | Error | Reference |
| TS1119 | An object literal cannot have property and accessor with the same name. | Error | Reference |
| TS1120 | An export assignment cannot have modifiers. | Error | Reference |
| TS1121 | Octal literals are not allowed. Use the syntax '{0}'. | Error | Reference |
| TS1123 | Variable declaration list cannot be empty. | Error | Reference |
| TS1124 | Digit expected. | Error | Reference |
| TS1125 | Hexadecimal digit expected. | Error | Reference |
| TS1126 | Unexpected end of text. | Error | Reference |
| TS1127 | Invalid character. | Error | Reference |
| TS1128 | Declaration or statement expected. | Error | Reference |
| TS1129 | Statement expected. | Error | Reference |
| TS1130 | 'case' or 'default' expected. | Error | Reference |
| TS1131 | Property or signature expected. | Error | Reference |
| TS1132 | Enum member expected. | Error | Reference |
Other families: JavaScript, Node.js, npm, React, Next.js, Vite, webpack, Jest