sentry-react-native icon indicating copy to clipboard operation
sentry-react-native copied to clipboard

Support Debug Ids with Re.Pack

Open akshay-capgemini opened this issue 1 year ago • 6 comments

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

akshay-capgemini avatar Jul 17 '24 12:07 akshay-capgemini

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 avatar Jul 17 '24 23:07 krystofwoldrich

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.

krystofwoldrich avatar Jul 17 '24 23:07 krystofwoldrich

Also would love to see this!

skinsapp avatar Aug 12 '24 03:08 skinsapp

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?

cscty avatar Nov 30 '24 21:11 cscty

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.

krystofwoldrich avatar Dec 02 '24 11:12 krystofwoldrich

Try this https://github.com/gronxb/repack-plugin-sentry

gronxb avatar Jun 18 '25 05:06 gronxb