getsentry / sentry-react-native

Official Sentry SDK for React Native
https://sentry.io
MIT License
1.56k stars 331 forks source link

Support Debug Ids with Re.Pack #3956

Open akshay-capgemini opened 1 month ago

akshay-capgemini commented 1 month ago

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

krystofwoldrich commented 1 month ago

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 commented 1 month ago

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.

skinsapp commented 1 month ago

Also would love to see this!