-
-
Notifications
You must be signed in to change notification settings - Fork 353
Closed
Description
OS:
- Windows
- MacOS
- Linux
Platform:
- iOS
- Android
SDK:
-
@sentry/react-native
(>= 1.0.0) -
react-native-sentry
(<= 0.43.2)
SDK version: 1.3.7
react-native
version: 0.61.4
Are you using Expo?
- Yes
- No
Are you using sentry.io or on-premise?
- sentry.io (SaaS)
- on-premise
If you are using sentry.io, please post a link to your issue so we can take a look:
Configuration:
(@sentry/react-native
)
Sentry.init({
dsn: 'HIDDEN,
enableAutoSessionTracking: true,
})
const sentryReleaseName = `${DeviceInfo.getBundleId()}-${DeviceInfo.getVersion()}`
const sentryDistName = DeviceInfo.getBuildNumber()
Sentry.setRelease(sentryReleaseName)
Sentry.setDist(sentryDistName)
I have following issue:
The sourcemap and source are uploaded via sentry-cli and are listed under the artifacts of the release, but the issue still says "app:///main.jsbundle in onPress at line 2019:2751"
Steps to reproduce:
- Bundle:
react-native bundle --dev false --platform ios --entry-file index.js --bundle-output ios/ios.main.bundle --sourcemap-output ios/ios.main.bundle.map
- Upload:
cd ios && MARKETING_VERSION=$(xcodebuild -showBuildSettings | grep MARKETING_VERSION | tr -d 'MARKETING_VERSION =') && BUILD_VERSION=$(xcodebuild -showBuildSettings | grep CURRENT_PROJECT_VERSION | tr -d 'CURRENT_PROJECT_VERSION =') && env SENTRY_ORG=think-smart-journal SENTRY_LOG_LEVEL=info SENTRY_PROJECT=react-native yarn sentry-cli releases files com.thinksmartjournal-$MARKETING_VERSION upload-sourcemaps --dist $BUILD_VERSION --bundle ios/ios.main.bundle --bundle-sourcemap ios/ios.main.bundle.map
Sentry.captureException('Test error!')
I have also tried uploading via fastlane:
sentry_upload_sourcemap(
version: app_identifier + "-" + get_version_number(xcodeproj: xcodeproj),
dist: get_build_number(xcodeproj: xcodeproj),
app_identifier: app_identifier,
sourcemap: "ios.main.bundle.map",
rewrite: true
)
Actual result:
app:///main.jsbundle in onPress at line 2019:2751
Expected result:
Source map to .ts
file.
Metadata
Metadata
Assignees
Labels
No labels