Skip to content
JS
Errors

TypeScript errors

TSxxxx compiler errors.

1,407 entries0 written pages
Showing 351 to 400 of 1,407Source: TypeScript diagnosticMessages.json
CodeError
TS1496Identifier, string literal, or number literal expected.
TS1497Expression must be enclosed in parentheses to be used as a decorator.
TS1498Invalid syntax in decorator.
TS1499Unknown regular expression flag.
TS1500Duplicate regular expression flag.
TS1501This regular expression flag is only available when targeting '{0}' or later.
TS1502The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously.
TS1503Named capturing groups are only available when targeting 'ES2018' or later.
TS1504Subpattern flags must be present when there is a minus sign.
TS1505Incomplete quantifier. Digit expected.
TS1506Numbers out of order in quantifier.
TS1507There is nothing available for repetition.
TS1508Unexpected '{0}'. Did you mean to escape it with backslash?
TS1509This regular expression flag cannot be toggled within a subpattern.
TS1510'\k' must be followed by a capturing group name enclosed in angle brackets.
TS1511'\q' is only available inside character class.
TS1512'\c' must be followed by an ASCII letter.
TS1513Undetermined character escape.
TS1514Expected a capturing group name.
TS1515Named capturing groups with the same name must be mutually exclusive to each other.
TS1516A character class range must not be bounded by another character class.
TS1517Range out of order in character class.
TS1518Anything that would possibly match more than a single character is invalid inside a negated character class.
TS1519Operators must not be mixed within a character class. Wrap it in a nested class instead.
TS1520Expected a class set operand.
TS1521'\q' must be followed by string alternatives enclosed in braces.
TS1522A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?
TS1523Expected a Unicode property name.
TS1524Unknown Unicode property name.
TS1525Expected a Unicode property value.
TS1526Unknown Unicode property value.
TS1527Expected a Unicode property name or value.
TS1528Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set.
TS1529Unknown Unicode property name or value.
TS1530Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set.
TS1531'\{0}' must be followed by a Unicode property value expression enclosed in braces.
TS1532There is no capturing group named '{0}' in this regular expression.
TS1533This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression.
TS1534This backreference refers to a group that does not exist. There are no capturing groups in this regular expression.
TS1535This character cannot be escaped in a regular expression.
TS1536Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax...
TS1537Decimal escape sequences and backreferences are not allowed in a character class.
TS1538Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set.
TS1539A 'bigint' literal cannot be used as a property name.
TS1540A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.
TS1541Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute.
TS1542Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute.
TS1543Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.
TS1544Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'.
TS1545'using' declarations are not allowed in ambient contexts.

Other families: JavaScript, Node.js, npm, React, Next.js, Vite, webpack, Jest