diff --git a/src/plugins/crashHandler/index.ts b/src/plugins/crashHandler/index.ts index 7303ba6b..4fd77c7a 100644 --- a/src/plugins/crashHandler/index.ts +++ b/src/plugins/crashHandler/index.ts @@ -76,6 +76,13 @@ export default definePlugin({ ], handleCrash(_this: any, errorState: any) { + if (IS_DEV) { + try { + if (errorState?.info && "componentStack" in errorState.info) { + console.error("Component Stack:", errorState.info.componentStack); + } + } catch { } + } _this.setState(errorState); // Already recovering, prevent error which happens more than once too fast to trigger another recover