sentry-react-native: Sourcemap doesn't work
OS:
- Windows
- MacOS
- Linux
Platform:
- iOS
- Android
Output of node -v && npm -v && npm ls --prod --depth=0
v8.5.0
5.4.2
├── babel-preset-react-native@2.0.1
├── debug@3.0.1
├── lodash@4.17.4
├── moment@2.18.1
├── prop-types@15.5.10
├── react@16.0.0-alpha.12
├── react-native@0.48.3
├── react-native-appmetrica@0.0.1 (git://github.com/doochik/react-native-appmetrica.git#eae1237a98a23671655f300ab429c8f567b57d86)
├── react-native-communications@2.2.1
├── react-native-deprecated-custom-components@0.1.1
├── react-native-device-info@0.11.0
├── react-native-fabric@0.5.0
├── react-native-fabric-crashlytics@0.1.8
├── react-native-fbsdk@0.6.1
├── react-native-google-analytics-bridge@5.2.2
├── react-native-imagepicker@2.0.0
├── react-native-l20n@0.0.8
├── react-native-linear-gradient@2.2.0
├── react-native-pagecontrol@4.0.0
├── react-native-photo-view@1.3.0
├── react-native-sentry@0.23.2
├── react-native-simple-action-sheet-ios@0.0.1
├── react-native-svg@5.4.1
├── react-native-tab-navigator@0.3.4
├── react-native-vkontakte-login@0.1.17
├── react-redux@5.0.6
├── redux@3.7.2
├── redux-logger@3.0.6
├── redux-thunk@2.2.0
└── whatwg-fetch@2.0.3
Config:
// I use default config
Sentry.config('https://...@sentry.io/...', {}).install()
I have following issue:
Sentry doesn’t expand error stacktrace and I see processing error “Source code was not found for app:///main.jsbundle”.
At release tab I see that sourcemaps are uploaded with names ~/main.jsbundle
and ~/main.jsbundle.map
, not “app:///main.jsbundle”.
Is this bug or I’ve missed something in Sentry config?
I use Sentry 8.19.0
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 4
- Comments: 28 (10 by maintainers)
@HazAT I’m having issues with pushing a code-push release to prod. When my account shows 0 releases, I expect v1 to be the latest code push release.
However, when I run the commands in the documentation, I get the following output:
Source Map Upload Report Minified Scripts ~/main.jsbundle (sourcemap at main.jsbundle.map) Source Maps ~/main.jsbundle.map
Any ideas? My staging environment has versions up to v3, but prod does not.
I’m currently using the latest version of sentry-cli (1.21.0)
Hi, for Android, it works well for me. Like that:
But for iOS, it can not get the source map
Any idea @HazAT ?
I have another script already:
@swl367 @HazAT I had the same issue, source map just not work
@valeryq There are:
try out which fits your needs. What do mean with automatic source map handling? If you don’t want to upload source maps you can remove the run script from Xcode or gradle plugin from your android project.
@swl367 I’ve just updated our docs and fixed bunch of stuff. https://docs.sentry.io/clients/react-native/codepush/
Also make sure to use the latest sentry-cli version
1.20
which soon will be released.@swl367 https://docs.sentry.io/clients/react-native/codepush/ Also you have to upload source file + sourcemap by yourself with
sentry-cli