You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'.
changed the title [-]Task :app:createBundleReleaseJsAndAssets_SentryUpload_com.*********************** FAILED in react native repack App[/-][+]Support DebugIds with Re.pack[/+]on Jul 17, 2024
Closing this as the fix lives outside the React Native SDK.
Root cause: Re.Pack emits index.bundle, but @sentry/webpack-plugin only injects the Debug ID into and stamps the emitted source maps of .js/.mjs/.cjs assets. The packager source map therefore has no debugId, and the SDK's copy-debugid.js step logs Packager source map does not have debugId with nothing to copy.
The rest of the pipeline (copy-debugid.js onto the Hermes-composed map, Gradle/Xcode upload) already works once the packager map carries a debugId. Please open a new issue if symbolication still fails with a Debug ID present.
Activity
krystofwoldrich commentedon Jul 17, 2024
Hi @akshay-capgemini,
thank you for the message, we are excited to hear that you would like to use Sentry with Repack.
Sadly we currently do not support Repack and have not tested our integrations with it.
[-]Task :app:createBundleReleaseJsAndAssets_SentryUpload_com.*********************** FAILED in react native repack App[/-][+]Support DebugIds with Re.pack[/+]krystofwoldrich commentedon Jul 17, 2024
To add support for this we will have to add https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/80037366f99ea840e3264e275ad8432720cdb468/packages/webpack-plugin/src/index.ts#L104-L114 to the RN SDK package.
[-]Support DebugIds with Re.pack[/-][+]Support DebugIds with Re.Pack[/+][-]Support DebugIds with Re.Pack[/-][+]Support Debug Ids with Re.Pack[/+]skinsapp commentedon Aug 12, 2024
Also would love to see this!
12 remaining items
gronxb commentedon Jun 18, 2025
Try this https://github.com/gronxb/repack-plugin-sentry
antonis commentedon Nov 17, 2026
Closing this as the fix lives outside the React Native SDK.
Root cause: Re.Pack emits
index.bundle, but@sentry/webpack-pluginonly injects the Debug ID into and stamps the emitted source maps of.js/.mjs/.cjsassets. The packager source map therefore has nodebugId, and the SDK'scopy-debugid.jsstep logsPackager source map does not have debugIdwith nothing to copy.Where it's being addressed:
SentryDebugIdPluginthat stamps the Debug ID into.bundleoutputs and their source maps: feat: add SentryDebugIdPlugin callstack/repack#1451The rest of the pipeline (
copy-debugid.jsonto the Hermes-composed map, Gradle/Xcode upload) already works once the packager map carries adebugId. Please open a new issue if symbolication still fails with a Debug ID present.