TypeError
Code
RUNTIME/TYPE_ERROR
What it means
A JavaScript/TypeScript runtime TypeError was caught and normalized into AppError.
When it happens
TypeErroris normalized intoAppError.
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.viaat the boundary where you callAppError.ensure(). - In production, avoid crashing the whole app: show a generic error overlay and record diagnostics.
Last updated on