getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
38.91k stars 4.17k forks source link

Source code was not found for app:///main.ios.jsbundle in React Native #7687

Closed xutm closed 6 years ago

xutm commented 6 years ago

init sentry

Sentry.config(ops.dsn).install() Sentry.setRelease('0.0.32') sentry

sourcemap

node node_modules/react-native/local-cli/cli.js bundle --platform ios --entry-file ./src/index.js --bundle-output ./output_ios/main.ios.jsbundle --sourcemap-output ./output_ios/main.ios.jsbundle.map --assets-dest ./output_ios --dev true

sourcemap

upload bundle and sourcemap

./node_modules/.bin/sentry-cli --auth-token <auth-tocken> --url https://fse.devops.xiaohongshu.com/ releases -o sentry -p mall-home files 0.0.32 upload-sourcemaps --rewrite --validate /Users/xutianming/red/mall-home/output_ios/main.ios.jsbundle /Users/xutianming/red/mall-home/output_ios/main.ios.jsbundle.map --strip-prefix /Users/xutianming/red/mall-home/output_ios/

image

project => releases => artifacts

artifacts

error

error

I don't know where is the problem,how to solve the problem?

sauravy commented 6 years ago

+1

HazAT commented 6 years ago

Please create an issue on https://github.com/getsentry/react-native-sentry This error is probably caused by release / dist do not match the event tags. Also please provide an url to your sentry.io issue so we are able the check whats going on.

hetchzhao commented 6 years ago

me too!

hsparihar-systango commented 5 years ago

@HazAT Getting same issues on "react-native-sentry": "^0.40.3" version. Tried to configure on the free account then got the debug file but on deployed version getting the error
Source code was not found for app:///main.jsbundle Expand Not getting the error stack trace screen shot 2019-02-26 at 2 49 01 pm