Support Debug Ids with Re.Pack
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
debugIdfrom packager source map to Hermes source map... Packager source map does not havedebugId. 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
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.
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.
Also would love to see this!
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.
@krystofwoldrich Hello brother, does that mean that projects built with 'Repack' cannot be integrated into the Sentry platform? The reason is that Sentry platform did not parse the map file built for 'Repack', right?
Hello @cscty, Sentry can be integrated with Re.Pack projects, but it means that we don't have any quick guides leading you through the process.
Our current documentation helps users with setting up Metro and Webpack.
Try this https://github.com/gronxb/repack-plugin-sentry