Skip to content
JS
Errors

TypeScript errors

TSxxxx compiler errors.

1,407 entries0 written pages
Showing 1,101 to 1,150 of 1,407Source: TypeScript diagnosticMessages.json
CodeError
TS5083Cannot read file '{0}'.
TS5085A tuple member cannot be both optional and rest.
TS5086A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type.
TS5087A labeled tuple element is declared as rest with a '...' before the name, rather than before the type.
TS5088The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary.
TS5089Option '{0}' cannot be specified when option 'jsx' is '{1}'.
TS5090Non-relative paths are not allowed. Did you forget a leading './'?
TS5091Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled.
TS5092The root value of a '{0}' file must be an object.
TS5093Compiler option '--{0}' may only be used with '--build'.
TS5094Compiler option '--{0}' may not be used with '--build'.
TS5095Option '{0}' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.
TS5096Option 'allowImportingTsExtensions' can only be used when one of 'noEmit', 'emitDeclarationOnly', or 'rewriteRelativeImportExtensions' is...
TS5097An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled.
TS5098Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'.
TS5101Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence...
TS5102Option '{0}' has been removed. Please remove it from your configuration.
TS5103Invalid value for '--ignoreDeprecations'.
TS5104Option '{0}' is redundant and cannot be specified with option '{1}'.
TS5105Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'.
TS5107Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to...
TS5108Option '{0}={1}' has been removed. Please remove it from your configuration.
TS5109Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'.
TS5110Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'.
TS5112tsconfig.json is present but will not be loaded if files are specified on commandline. Use '--ignoreConfig' to skip this error.
TS5113'{0}' is only assignable to the non-distributed '{1}', but '{1}' has been distributed here.
TS6044Compiler option '{0}' expects an argument.
TS6045Unterminated quoted string in response file '{0}'.
TS6046Argument for '{0}' option must be: {1}.
TS6048Locale must be an IETF BCP 47 language tag. Examples: '{0}', '{1}'.
TS6050Unable to open file '{0}'.
TS6051Corrupted locale file {0}.
TS6053File '{0}' not found.
TS6054File '{0}' has an unsupported extension. The only supported extensions are {1}.
TS6059File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files.
TS6064Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line.
TS6082Only 'amd' and 'system' modules are supported alongside --{0}.
TS6114Unknown option 'excludes'. Did you mean 'exclude'?
TS6131Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'.
TS6133'{0}' is declared but its value is never read.
TS6137Cannot import type declaration files. Consider importing '{0}' instead of '{1}'.
TS6138Property '{0}' is declared but its value is never read.
TS6140Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'.
TS6142Module '{0}' was resolved to '{1}', but '--jsx' is not set.
TS6188Numeric separators are not allowed here.
TS6189Multiple consecutive numeric separators are not permitted.
TS6192All imports in import declaration are unused.
TS6196'{0}' is declared but never used.
TS6198All destructured elements are unused.
TS6199All variables are unused.

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