diff --git a/packages/taro-framework-react/src/runtime/connect.ts b/packages/taro-framework-react/src/runtime/connect.ts index 52f6ed6b76d..ea5df0a661c 100644 --- a/packages/taro-framework-react/src/runtime/connect.ts +++ b/packages/taro-framework-react/src/runtime/connect.ts @@ -117,7 +117,7 @@ export function connectReactPage ( } static getDerivedStateFromError (error: Error) { - Current.app?.onError?.(error.message + error.stack) + Current.app?.onError?.(error.message + error.stack, error) return { hasError: true } }