Errors
TypeScript errors
TSxxxx compiler errors.
1,407 entries0 written pages
Showing 351 to 400 of 1,407Source: TypeScript diagnosticMessages.json
| Code | Error | Category | Page |
|---|---|---|---|
| TS1496 | Identifier, string literal, or number literal expected. | Error | Reference |
| TS1497 | Expression must be enclosed in parentheses to be used as a decorator. | Error | Reference |
| TS1498 | Invalid syntax in decorator. | Error | Reference |
| TS1499 | Unknown regular expression flag. | Error | Reference |
| TS1500 | Duplicate regular expression flag. | Error | Reference |
| TS1501 | This regular expression flag is only available when targeting '{0}' or later. | Error | Reference |
| TS1502 | The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously. | Error | Reference |
| TS1503 | Named capturing groups are only available when targeting 'ES2018' or later. | Error | Reference |
| TS1504 | Subpattern flags must be present when there is a minus sign. | Error | Reference |
| TS1505 | Incomplete quantifier. Digit expected. | Error | Reference |
| TS1506 | Numbers out of order in quantifier. | Error | Reference |
| TS1507 | There is nothing available for repetition. | Error | Reference |
| TS1508 | Unexpected '{0}'. Did you mean to escape it with backslash? | Error | Reference |
| TS1509 | This regular expression flag cannot be toggled within a subpattern. | Error | Reference |
| TS1510 | '\k' must be followed by a capturing group name enclosed in angle brackets. | Error | Reference |
| TS1511 | '\q' is only available inside character class. | Error | Reference |
| TS1512 | '\c' must be followed by an ASCII letter. | Error | Reference |
| TS1513 | Undetermined character escape. | Error | Reference |
| TS1514 | Expected a capturing group name. | Error | Reference |
| TS1515 | Named capturing groups with the same name must be mutually exclusive to each other. | Error | Reference |
| TS1516 | A character class range must not be bounded by another character class. | Error | Reference |
| TS1517 | Range out of order in character class. | Error | Reference |
| TS1518 | Anything that would possibly match more than a single character is invalid inside a negated character class. | Error | Reference |
| TS1519 | Operators must not be mixed within a character class. Wrap it in a nested class instead. | Error | Reference |
| TS1520 | Expected a class set operand. | Error | Reference |
| TS1521 | '\q' must be followed by string alternatives enclosed in braces. | Error | Reference |
| TS1522 | A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash? | Error | Reference |
| TS1523 | Expected a Unicode property name. | Error | Reference |
| TS1524 | Unknown Unicode property name. | Error | Reference |
| TS1525 | Expected a Unicode property value. | Error | Reference |
| TS1526 | Unknown Unicode property value. | Error | Reference |
| TS1527 | Expected a Unicode property name or value. | Error | Reference |
| TS1528 | Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set. | Error | Reference |
| TS1529 | Unknown Unicode property name or value. | Error | Reference |
| TS1530 | Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. | Error | Reference |
| TS1531 | '\{0}' must be followed by a Unicode property value expression enclosed in braces. | Error | Reference |
| TS1532 | There is no capturing group named '{0}' in this regular expression. | Error | Reference |
| TS1533 | This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression. | Error | Reference |
| TS1534 | This backreference refers to a group that does not exist. There are no capturing groups in this regular expression. | Error | Reference |
| TS1535 | This character cannot be escaped in a regular expression. | Error | Reference |
| TS1536 | Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax... | Error | Reference |
| TS1537 | Decimal escape sequences and backreferences are not allowed in a character class. | Error | Reference |
| TS1538 | Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. | Error | Reference |
| TS1539 | A 'bigint' literal cannot be used as a property name. | Error | Reference |
| TS1540 | A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead. | Error | Reference |
| TS1541 | Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute. | Error | Reference |
| TS1542 | Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute. | Error | Reference |
| TS1543 | Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'. | Error | Reference |
| TS1544 | Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'. | Error | Reference |
| TS1545 | 'using' declarations are not allowed in ambient contexts. | Error | Reference |
Other families: JavaScript, Node.js, npm, React, Next.js, Vite, webpack, Jest