Skip to content
Latchkey

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

  1. Narrow a union so only the callable member is invoked
  2. For interop modules, enable esModuleInterop or import * as
tsconfig.json
{
  "compilerOptions": { "esModuleInterop": true }
}

Fix the type if it is wrong

  1. 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

References

Latchkey auto-heals failures like this one - detected, fixed, and retried without you. Start free → 30-day trial · No credit card