getsentry / getsentry/sentry-react-native

Support Debug Ids with Re.Pack

オープン
#3,956 コメント 6 件 リアクション 1 件 担当者 0 名 GitHub で見る
Errors Feature React-Native
主要言語
TypeScript
スター
1.8k
フォーク
366
平均マージ
1日 6時間
マージ済み PR(30日)
94

説明

### 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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Re.Pack と PNPM を使用して Android のリリースビルドを再現し、その後、android/app/build/generated/sourcemaps/react/release/index.android.bundle.map に生成された map と Sentry のアップロードタスクの出力を確認します。packager の source map が Debug ID を提供し、リリースビルドの Sentry アップロードステップが正常に完了すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
react-native
領域
build-system, mobile
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。