Skip to content

getSentryExpoConfig(5.26.0) no longer unobfuscates stack traces with source maps #3967

@navignaw

Description

@navignaw

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:

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

Labels

No labels
No labels

Projects

Status

Done

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions