Support Debug Ids with Re.Pack

Open
#3,956 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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.

Description

Errors Feature React-Native
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

Dominant language
TypeScript
Stars
1.8k
Forks
367
Avg merge
1d 6h
Merged PRs (30d)
94

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/sentry-react-native

All issues in getsentry/sentry-react-native

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.