Error AtlasError Documentation and Resolution

JavaScript tried to call something that is not a function

TypeError: x is not a function

JavaScript attempted to invoke a value as a function, but the value is not callable.

TypeError: x is not a functionruntime
TypeError: x is not a function
  • Code calls a non-function value with parentheses.
  • An expected method does not exist on the current value.
  • An import, property access, or refactor changed what the identifier points to.
  1. Log the value before calling it and verify that it is callable.
  2. Check property names, method availability, and prototype assumptions.
  3. Review import shape and default-vs-named exports if the value comes from a module.
MDN: TypeError: x is not a function
JavaScript x is not a function: causes and fixes | Error Atlas