ns-uncaught-error-policy

Installation
SKILL.md

uncaughtErrorPolicy: why 9.1 apps stopped crashing

NativeScript 9.1 changed the default handling of uncaught JS errors. The new uncaughtErrorPolicy config takes:

  • 'report' (default) — log the error, fire Application.uncaughtErrorEvent, keep the app running.
  • 'throw' — after reporting, rethrow natively: the app crashes like pre-9.1.

Requires runtime 9.1+ on both platforms; older runtimes ignore the key and crash as before.

// nativescript.config.ts
export default {
  id: 'org.example.app',
  uncaughtErrorPolicy: 'throw',   // TOP LEVEL ONLY — nested under ios/android it is silently ignored
  // ...
} as NativeScriptConfig;

Which one do you want?

Installs
19
GitHub Stars
1
First Seen
Aug 28, 2026
ns-uncaught-error-policy — nativescript/skills