Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Debug Ids with Re.Pack #3956

Open
akshay-capgemini opened this issue Jul 17, 2024 · 5 comments
Open

Support Debug Ids with Re.Pack #3956

akshay-capgemini opened this issue Jul 17, 2024 · 5 comments
Labels
Platform: React-Native up-for-grabs ✋ We would really appreciate anyone interested in working on this to submit a PR!

Comments

@akshay-capgemini
Copy link

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
Copy link
Member

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 krystofwoldrich changed the title Task :app:createBundleReleaseJsAndAssets_SentryUpload_com.*********************** FAILED in react native repack App Support DebugIds with Re.pack Jul 17, 2024
@krystofwoldrich
Copy link
Member

krystofwoldrich commented 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.

@krystofwoldrich krystofwoldrich changed the title Support DebugIds with Re.pack Support DebugIds with Re.Pack Jul 17, 2024
@krystofwoldrich krystofwoldrich changed the title Support DebugIds with Re.Pack Support Debug Ids with Re.Pack Jul 17, 2024
@krystofwoldrich krystofwoldrich added the up-for-grabs ✋ We would really appreciate anyone interested in working on this to submit a PR! label Aug 2, 2024
@krystofwoldrich krystofwoldrich moved this from Needs Discussion to Backlog in Mobile & Cross Platform SDK Aug 2, 2024
@skinsapp
Copy link

Also would love to see this!

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Aug 12, 2024
@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Nov 30, 2024
@cscty
Copy link

cscty commented Nov 30, 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.

@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?

@krystofwoldrich
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: React-Native up-for-grabs ✋ We would really appreciate anyone interested in working on this to submit a PR!
Projects
Status: No status
Status: Backlog
Development

No branches or pull requests

5 participants