TypeScript
TypeScript errors explained in plain English. Find your error below.
Error Codes
TS1128
TypeScript
Compiler Error
TS1128 means TypeScript found something at the top level of a file that is not a …
TS2345
TypeScript
TypeScript
TS2345 means you passed an argument of the wrong type to a function.<br>The …
TS2580
TypeScript
Compiler Error
TS2580 means TypeScript does not know about the Node.js require function because …
TS2683
TypeScript
Compiler Error
TS2683 means TypeScript cannot determine the type of 'this' inside a regular …
TS2786
TypeScript
Compiler Error
TS2786 means TypeScript cannot verify that a function or class can be used as a …
TS2305
TypeScript
Programming Language
TypeScript error TS2305 means you are trying to import something from a module, …
TS2349
TypeScript
Programming Language
TypeScript error TS2349 means you are trying to call something as a function, …
TS2378
TypeScript
Programming Language
TypeScript error TS2378 means you defined a getter property (get myProp()) in a …
TS2693
TypeScript
Programming Language
TypeScript error TS2693 means you are using a TypeScript type, interface, or …
TS7053
TypeScript
Programming Language
TypeScript error TS7053 occurs when you use a dynamic string (or number) to …
TS2307
TypeScript
Programming Language
TypeScript cannot locate the module you imported.<br>Either the package is not …
TS2367
TypeScript
Programming Language
TypeScript can see that your comparison will always be false.<br>The two types …
TS2769
TypeScript
Programming Language
You called a function with arguments that do not match any of its defined …
TS18048
TypeScript
Programming Language
TypeScript strict mode detected that a variable might be undefined when you use …
TS2362
TypeScript
Programming Language
You used a non-number value in an arithmetic expression like + - or …
TS2416
TypeScript
Programming Language
A class method or property you overrode is not compatible with the base class …
TS2741
TypeScript
Programming Language
You created an object but left out a required property.<br>TypeScript enforces …
TS1005
TypeScript
Programming Language
TypeScript error TS1005 means the compiler found a syntax error — something is …
TS2304
TypeScript
Programming Language
TypeScript error TS2304 means your code uses a name — a variable, function, …
TS2322
TypeScript
Programming Language
TypeScript error TS2322 means you tried to assign a value to a variable or …
TS2339
TypeScript
Programming Language
TypeScript error TS2339 means you are trying to access a property on an object …
TS2345
TypeScript
Programming Language
TypeScript error TS2345 means you passed a value to a function, but the type of …
TS2531
TypeScript
Programming Language
TypeScript error TS2531 means you are trying to use a value that TypeScript …
TS2532
TypeScript
Programming Language
TypeScript error TS2532 means you are accessing a property or calling a method …
TS2551
TypeScript
Programming Language
TypeScript error TS2551 means you used a property name that does not exist on …
TS2554
TypeScript
Programming Language
TypeScript error TS2554 means you called a function with the wrong number of …
TS7006
TypeScript
Programming Language
TypeScript error TS7006 means a function parameter has no type annotation, and …