Skip to content
JS
Errors

TypeScript errors

TSxxxx compiler errors.

1,407 entries0 written pages
Showing 1,351 to 1,400 of 1,407Source: TypeScript diagnosticMessages.json
CodeError
TS18033Type '{0}' is not assignable to type '{1}' as required for computed enum member values.
TS18035Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name.
TS18036Class decorators can't be used with static private identifier. Consider removing the experimental decorator.
TS18037'await' expression cannot be used inside a class static block.
TS18038'for await' loops cannot be used inside a class static block.
TS18039Invalid use of '{0}'. It cannot be used inside a class static block.
TS18041A 'return' statement cannot be used inside a class static block.
TS18042'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation.
TS18043Types cannot appear in export declarations in JavaScript files.
TS18045Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
TS18046'{0}' is of type 'unknown'.
TS18047'{0}' is possibly 'null'.
TS18048'{0}' is possibly 'undefined'.
TS18049'{0}' is possibly 'null' or 'undefined'.
TS18050The value '{0}' cannot be used here.
TS18051Compiler option '{0}' cannot be given an empty string.
TS18053Its type '{0}' is not a valid JSX element type.
TS18054'await using' statements cannot be used inside a class static block.
TS18055'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled.
TS18056Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled.
TS18057String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'.
TS18058Default imports are not allowed in a deferred import.
TS18059Named imports are not allowed in a deferred import.
TS18060Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'.
TS18061'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?
TS18062Regular expression pattern modifiers are only available when targeting '{0}' or later.
TS18063Duplicate named capturing groups are only available when targeting '{0}' or later.
TS18064Private identifiers cannot be used in destructuring patterns.
TS18065Content mapper file extension '{0}' must begin with a '.'.
TS18066Content mapper file extension '{0}' is a built-in extension and cannot be registered by a content mapper.
TS18067Content mapper file extension '{0}' is registered by more than one content mapper.
TS18068Content mappers require the '--runExternalCode' command line flag to be enabled.
TS18069The content mapper '{0}' failed to transform this file.
TS18070The content mapper '{0}' failed {1} times and will not be used.
TS18071The content mapper '{0}' did not provide the required position mappings.
TS18072The content mapper '{0}' produced a position mapping that points outside the original content (original offset {1}).
TS18073The content mapper '{0}' produced a verbatim mapping that does not match the original content (virtual offset {1}, original offset {2}).
TS18075The content mapper package '{0}' could not be resolved.
TS18076The 'package.json' of the content mapper package '{0}' could not be parsed.
TS18077The 'package.json' of the content mapper package '{0}' does not specify a 'name'.
TS18078The 'package.json' of the content mapper package '{0}' does not declare a 'typescript.contentMapper' object.
TS18079The 'typescript.contentMapper.exec' of the content mapper package '{0}' must be a non-empty array of strings.
TS18080Virtual code produced by the content mapper '{0}' has problems with no corresponding location in this file.
TS18081The content mapper '{0}' produced overlapping or out-of-order position mappings (near virtual offset {1}).
TS18082The content mapper '{0}' produced invalid mapping features near original offset {1}.
TS18083The content mapper '{0}' produced a position mapping with an invalid kind (near virtual offset {1}).
TS18099The content mapper '{0}' could not be initialized.
TS80001File is a CommonJS module; it may be converted to an ES module.
TS80002This constructor function may be converted to a class declaration.
TS80003Import may be converted to a default import.

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