Skip to Content

TypeError

Code

RUNTIME/TYPE_ERROR

What it means

A JavaScript/TypeScript runtime TypeError was caught and normalized into AppError.

When it happens

  • TypeError is normalized into AppError.

Typical scenarios:

  • Accessing properties on null/undefined
  • Calling a non-function
  • Using invalid arguments for built-in APIs

How to handle

  • Treat as a bug signal. Capture meta.via at the boundary where you call AppError.ensure().
  • In production, avoid crashing the whole app: show a generic error overlay and record diagnostics.
Last updated on
Docsv1.0.10