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, fireApplication.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;