getsentry / getsentry/sentry-react-native

Support Debug Ids with Re.Pack

Open
#3,956 6 comments 1 reaction 0 assignees View on GitHub
Errors Feature React-Native
Dominant language
TypeScript
Stars
1.8k
Forks
366
Avg merge
1d 6h
Merged PRs (30d)
94

Description

### Description

Im using sentry in my repack rect native application. The sentry is working fine in debug APK and Im also able to generate the debug APK. But when I try to generate the release APK. The build failed with the below issue.

> Task :app:createBundleReleaseJsAndAssets_SentryUpload_com.*********************** FAILED
Copy `debugId` from packager source map to Hermes source map...
Packager source map does not have `debugId`.
Check generated source map for Debug ID: /Users/******************/host/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map does not contain 'debugId' nor 'debug_id'.

Im using PNPM to install sentry

Contributor guide

Open the contributing guide

Research direction

Reproduce the Android release build with Re.Pack and PNPM, then inspect the generated map at android/app/build/generated/sourcemaps/react/release/index.android.bundle.map and the Sentry upload task output. Done means the packager source map provides a Debug ID and the release build's Sentry upload step completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
build-system, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.