TS2349: This expression is not callable - in CI
You invoked a value that the compiler does not consider a function.
What this error means
Type-checking fails with TS2349 stating the type has no call signatures, often on a union or a default-import mishap.
tsc
src/run.ts(14,3): error TS2349: This expression is not callable. Type 'Number' has no call signatures.Common causes
How to fix it
Call the right value
- Narrow a union so only the callable member is invoked
- For interop modules, enable esModuleInterop or import * as
tsconfig.json
{
"compilerOptions": { "esModuleInterop": true }
}Fix the type if it is wrong
- Correct the declaration so the value has a call signature
How to prevent it
- Enable esModuleInterop for CommonJS interop and narrow unions before calling.
Frequently asked questions
What causes "TS2349 not callable"?
Type-checking fails with TS2349 stating the type has no call signatures, often on a union or a default-import mishap.
How do I fix TS2349 not callable?
Call the right value
Related guides
TS2554: Expected N arguments, but got M - in CIFix "error TS2554: Expected N arguments, but got M" when tsc runs in CI - a call with the wrong number of arg…
TS1259: Module can only be default-imported using esModuleInterop - in CIFix "error TS1259: Module ... can only be default-imported using the 'esModuleInterop' flag" when tsc runs in…
TS2769: No overload matches this call - in CIFix "error TS2769: No overload matches this call" when tsc runs in CI - arguments do not fit any of a functio…