Errors
TypeScript errors
TSxxxx compiler errors.
1,407 entries0 written pages
Showing 251 to 300 of 1,407Source: TypeScript diagnosticMessages.json
| Code | Error | Category | Page |
|---|---|---|---|
| TS1314 | Global module exports may only appear in module files. | Error | Reference |
| TS1315 | Global module exports may only appear in declaration files. | Error | Reference |
| TS1316 | Global module exports may only appear at top level. | Error | Reference |
| TS1317 | A parameter property cannot be declared using a rest parameter. | Error | Reference |
| TS1318 | An abstract accessor cannot have an implementation. | Error | Reference |
| TS1319 | A default export can only be used in an ECMAScript-style module. | Error | Reference |
| TS1320 | Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member. | Error | Reference |
| TS1321 | Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member. | Error | Reference |
| TS1322 | Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member. | Error | Reference |
| TS1323 | Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd',... | Error | Reference |
| TS1324 | Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'node20', 'nodenext', or... | Error | Reference |
| TS1325 | Argument of dynamic import cannot be spread element. | Error | Reference |
| TS1326 | This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments. | Error | Reference |
| TS1327 | String literal with double quotes expected. | Error | Reference |
| TS1328 | Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal. | Error | Reference |
| TS1329 | '{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'? | Error | Reference |
| TS1330 | A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'. | Error | Reference |
| TS1331 | A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'. | Error | Reference |
| TS1332 | A variable whose type is a 'unique symbol' type must be 'const'. | Error | Reference |
| TS1333 | 'unique symbol' types may not be used on a variable declaration with a binding name. | Error | Reference |
| TS1334 | 'unique symbol' types are only allowed on variables in a variable statement. | Error | Reference |
| TS1335 | 'unique symbol' types are not allowed here. | Error | Reference |
| TS1337 | An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead. | Error | Reference |
| TS1338 | 'infer' declarations are only permitted in the 'extends' clause of a conditional type. | Error | Reference |
| TS1339 | Module '{0}' does not refer to a value, but is used as a value here. | Error | Reference |
| TS1340 | Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'? | Error | Reference |
| TS1341 | Class constructor may not be an accessor. | Error | Reference |
| TS1343 | The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18',... | Error | Reference |
| TS1344 | A label is not allowed here. | Error | Reference |
| TS1345 | An expression of type 'void' cannot be tested for truthiness. | Error | Reference |
| TS1346 | This parameter is not allowed with 'use strict' directive. | Error | Reference |
| TS1347 | 'use strict' directive cannot be used with non-simple parameter list. | Error | Reference |
| TS1348 | Non-simple parameter declared here. | Error | Reference |
| TS1349 | 'use strict' directive used here. | Error | Reference |
| TS1351 | An identifier or keyword cannot immediately follow a numeric literal. | Error | Reference |
| TS1352 | A bigint literal cannot use exponential notation. | Error | Reference |
| TS1353 | A bigint literal must be an integer. | Error | Reference |
| TS1354 | 'readonly' type modifier is only permitted on array and tuple literal types. | Error | Reference |
| TS1355 | A 'const' assertion can only be applied to references to enum members, or string, number, boolean, array, or object literals. | Error | Reference |
| TS1356 | Did you mean to mark this function as 'async'? | Error | Reference |
| TS1357 | An enum member name must be followed by a ',', '=', or '}'. | Error | Reference |
| TS1358 | Tagged template expressions are not permitted in an optional chain. | Error | Reference |
| TS1359 | Identifier expected. '{0}' is a reserved word that cannot be used here. | Error | Reference |
| TS1360 | Type '{0}' does not satisfy the expected type '{1}'. | Error | Reference |
| TS1361 | '{0}' cannot be used as a value because it was imported using 'import type'. | Error | Reference |
| TS1362 | '{0}' cannot be used as a value because it was exported using 'export type'. | Error | Reference |
| TS1363 | A type-only import can specify a default import or named bindings, but not both. | Error | Reference |
| TS1368 | Class constructor may not be a generator. | Error | Reference |
| TS1375 | 'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports.... | Error | Reference |
| TS1378 | Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18',... | Error | Reference |
Other families: JavaScript, Node.js, npm, React, Next.js, Vite, webpack, Jest