When there is an issue with source maps on your event, there will usually be an error dialog at the top of the Issue Details page in sentry.io:
There was 1 problem processing this event: Source code was not found
Common fixes to this issue include:
- Checking that both the
distand are set on the event by setting it in the call to
- Checking that source maps are correctly uploaded with the exact same
distvalues as the event. They must match for source maps to upload correctly.
- If you set a custom
dist, confirming that you manually uploaded the sourcemaps since our automatic source map upload script will not detect the custom values.
- Checking that you are not disabling the
RewriteFramesdefault integration by overwriting it, filtering it out, or setting
You will need to perform some extra steps when using the source maps with the Hermes engine on Android. You can follow the guide here.
--force_foreground to the Sentry CLI command in the build script. This is possibly a bug with our CLI that we are investigating.
# ... ../node_modules/@sentry/cli/bin/sentry-cli react-native xcode \ ../node_modules/react-native/scripts/react-native-xcode.sh --force_foreground