Skip to content
JS
Errors

TypeScript errors

TSxxxx compiler errors.

1,407 entries0 written pages
Showing 1,051 to 1,100 of 1,407Source: TypeScript diagnosticMessages.json
CodeError
TS4122This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'.
TS4123This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?
TS4124Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D...
TS4125Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given.
TS4126One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value.
TS4127This member cannot have an 'override' modifier because its name is dynamic.
TS4128This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic.
TS5001The current host does not support the '{0}' option.
TS5002Option '{0}' requires value to be greater than '{1}'.
TS5009Cannot find the common subdirectory path for the input files.
TS5010File specification cannot end in a recursive directory wildcard ('**'): '{0}'.
TS5011The common source directory of '{0}' is '{1}'. The 'rootDir' setting must be explicitly set to this or another path to adjust your...
TS5012Cannot read file '{0}': {1}.
TS5023Unknown compiler option '{0}'.
TS5024Compiler option '{0}' requires a value of type {1}.
TS5025Unknown compiler option '{0}'. Did you mean '{1}'?
TS5033Could not write file '{0}': {1}.
TS5042Option 'project' cannot be mixed with source files on a command line.
TS5047Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher.
TS5051Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.
TS5052Option '{0}' cannot be specified without specifying option '{1}'.
TS5053Option '{0}' cannot be specified with option '{1}'.
TS5054A 'tsconfig.json' file is already defined at: '{0}'.
TS5055Cannot write file '{0}' because it would overwrite input file.
TS5056Cannot write file '{0}' because it would be overwritten by multiple input files.
TS5057Cannot find a tsconfig.json file at the specified directory: '{0}'.
TS5058The specified path does not exist: '{0}'.
TS5059Invalid value for '--reactNamespace'. '{0}' is not a valid identifier.
TS5061Pattern '{0}' can have at most one '*' character.
TS5062Substitution '{0}' in pattern '{1}' can have at most one '*' character.
TS5063Substitutions for pattern '{0}' should be an array.
TS5064Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'.
TS5065File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'.
TS5066Substitutions for pattern '{0}' shouldn't be an empty array.
TS5067Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name.
TS5068Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at...
TS5069Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'.
TS5070Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'.
TS5071Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.
TS5072Unknown build option '{0}'.
TS5073Build option '{0}' requires a value of type {1}.
TS5074Option '--incremental' is only valid with a known configuration file (like 'tsconfig.json') or when '--tsBuildInfoFile' is explicitly...
TS5075'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'.
TS5076'{0}' and '{1}' operations cannot be mixed without parentheses.
TS5077Unknown build option '{0}'. Did you mean '{1}'?
TS5078Unknown watch option '{0}'.
TS5079Unknown watch option '{0}'. Did you mean '{1}'?
TS5080Watch option '{0}' requires a value of type {1}.
TS5081Cannot find a tsconfig.json file at the current directory: {0}.
TS5082'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'.

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