Errors
TypeScript errors
TSxxxx compiler errors.
1,407 entries0 written pages
Showing 1,101 to 1,150 of 1,407Source: TypeScript diagnosticMessages.json
| Code | Error | Category | Page |
|---|---|---|---|
| TS5083 | Cannot read file '{0}'. | Error | Reference |
| TS5085 | A tuple member cannot be both optional and rest. | Error | Reference |
| TS5086 | A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type. | Error | Reference |
| TS5087 | A labeled tuple element is declared as rest with a '...' before the name, rather than before the type. | Error | Reference |
| TS5088 | The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary. | Error | Reference |
| TS5089 | Option '{0}' cannot be specified when option 'jsx' is '{1}'. | Error | Reference |
| TS5090 | Non-relative paths are not allowed. Did you forget a leading './'? | Error | Reference |
| TS5091 | Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled. | Error | Reference |
| TS5092 | The root value of a '{0}' file must be an object. | Error | Reference |
| TS5093 | Compiler option '--{0}' may only be used with '--build'. | Error | Reference |
| TS5094 | Compiler option '--{0}' may not be used with '--build'. | Error | Reference |
| TS5095 | Option '{0}' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later. | Error | Reference |
| TS5096 | Option 'allowImportingTsExtensions' can only be used when one of 'noEmit', 'emitDeclarationOnly', or 'rewriteRelativeImportExtensions' is... | Error | Reference |
| TS5097 | An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled. | Error | Reference |
| TS5098 | Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'. | Error | Reference |
| TS5101 | Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence... | Error | Reference |
| TS5102 | Option '{0}' has been removed. Please remove it from your configuration. | Error | Reference |
| TS5103 | Invalid value for '--ignoreDeprecations'. | Error | Reference |
| TS5104 | Option '{0}' is redundant and cannot be specified with option '{1}'. | Error | Reference |
| TS5105 | Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'. | Error | Reference |
| TS5107 | Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to... | Error | Reference |
| TS5108 | Option '{0}={1}' has been removed. Please remove it from your configuration. | Error | Reference |
| TS5109 | Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'. | Error | Reference |
| TS5110 | Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'. | Error | Reference |
| TS5112 | tsconfig.json is present but will not be loaded if files are specified on commandline. Use '--ignoreConfig' to skip this error. | Error | Reference |
| TS5113 | '{0}' is only assignable to the non-distributed '{1}', but '{1}' has been distributed here. | Error | Reference |
| TS6044 | Compiler option '{0}' expects an argument. | Error | Reference |
| TS6045 | Unterminated quoted string in response file '{0}'. | Error | Reference |
| TS6046 | Argument for '{0}' option must be: {1}. | Error | Reference |
| TS6048 | Locale must be an IETF BCP 47 language tag. Examples: '{0}', '{1}'. | Error | Reference |
| TS6050 | Unable to open file '{0}'. | Error | Reference |
| TS6051 | Corrupted locale file {0}. | Error | Reference |
| TS6053 | File '{0}' not found. | Error | Reference |
| TS6054 | File '{0}' has an unsupported extension. The only supported extensions are {1}. | Error | Reference |
| TS6059 | File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files. | Error | Reference |
| TS6064 | Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line. | Error | Reference |
| TS6082 | Only 'amd' and 'system' modules are supported alongside --{0}. | Error | Reference |
| TS6114 | Unknown option 'excludes'. Did you mean 'exclude'? | Error | Reference |
| TS6131 | Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'. | Error | Reference |
| TS6133 | '{0}' is declared but its value is never read. | Error | Reference |
| TS6137 | Cannot import type declaration files. Consider importing '{0}' instead of '{1}'. | Error | Reference |
| TS6138 | Property '{0}' is declared but its value is never read. | Error | Reference |
| TS6140 | Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'. | Error | Reference |
| TS6142 | Module '{0}' was resolved to '{1}', but '--jsx' is not set. | Error | Reference |
| TS6188 | Numeric separators are not allowed here. | Error | Reference |
| TS6189 | Multiple consecutive numeric separators are not permitted. | Error | Reference |
| TS6192 | All imports in import declaration are unused. | Error | Reference |
| TS6196 | '{0}' is declared but never used. | Error | Reference |
| TS6198 | All destructured elements are unused. | Error | Reference |
| TS6199 | All variables are unused. | Error | Reference |
Other families: JavaScript, Node.js, npm, React, Next.js, Vite, webpack, Jest