-
-
Notifications
You must be signed in to change notification settings - Fork 357
Description
OS:
- Windows
- MacOS
- Linux
Platform:
- iOS
- Android
SDK:
-
@sentry/react-native(>= 1.0.0) -
react-native-sentry(<= 0.43.2)
SDK version: 5.26.0
react-native version: 0.73.8
Are you using Expo?
- Yes
- No
Are you using sentry.io or on-premise?
- sentry.io (SaaS)
- on-premise
Configuration:
Same as recommended in the guide: https://docs.sentry.io/platforms/react-native/sourcemaps/uploading/expo/
I have the following issue:
When building an Expo app with EAS build and the getSentryExpoConfig function with the annotateReactComponents set to true, stack traces no longer appear to be unobfuscated. EDIT: I'm also seeing no stack traces at all when this is set to false.
I suspect that this is due to the code conditionally running either withSentryFramesCollapsed or withSentryBabelTransformer, but the latter function is missing some logic for the source maps.
Steps to reproduce:
- Follow the guide to configure an expo project: https://docs.sentry.io/platforms/react-native/sourcemaps/uploading/expo/
- Update the
getSentryExpoConfigto includeannotateReactComponents: true, like in the docs for Session Replay - Trigger an error
Actual result:
The stack trace is still obfuscated:
at anonymous(/data/user/0/com.my.app/files/.expo-internal/bundle-09ffe111-2624-4bbe-b654-7e168c002adb.js:1:2719482)
at safeCallback(/data/user/0/com.my.app/files/.expo-internal/bundle-09ffe111-2624-4bbe-b654-7e168c002adb.js:1:3153014)
at withScope(/data/user/0/com.my.app/files/.expo-internal/bundle-09ffe111-2624-4bbe-b654-7e168c002adb.js:1:2773796)
at withScope(/data/user/0/com.my.app/files/.expo-internal/bundle-09ffe111-2624-4bbe-b654-7e168c002adb.js:1:3152992)
at anonymous(/data/user/0/com.my.app/files/.expo-internal/bundle-09ffe111-2624-4bbe-b654-7e168c002adb.js:1:2719389)
at ?anon_0_(/data/user/0/com.my.app/files/.expo-internal/bundle-09ffe111-2624-4bbe-b654-7e168c002adb.js:1:3561878)
Expected result:
The stack trace is unminified
Metadata
Metadata
Assignees
Labels
Projects
Status
Status