fix(react-native): report correct agent version and fix RN 0.72 init crash - #379
Draft
KishanPRao wants to merge 2 commits into
Draft
fix(react-native): report correct agent version and fix RN 0.72 init crash#379KishanPRao wants to merge 2 commits into
KishanPRao wants to merge 2 commits into
Conversation
melekr
reviewed
Jul 30, 2026
melekr
left a comment
Collaborator
There was a problem hiding this comment.
we're pinning "react-native": ">=0.72.0"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reports carried a hardcoded
0.0.1agent version, and RN 0.72 apps crashed at SDK init because Metro 0.76.9 mis-indexes a babel helper require in sdk-core's bundle.Changes
packages/react-native/src/BacktraceClient.ts: readagentVersionfrom the package version instead of the hardcoded0.0.1.packages/sdk-core/tsconfig.build.json: target ES5 with downlevelIteration so the shipped bundle has no class syntax for the consumer's Metro to transpile into babel helper requires.packages/sdk-core/rollup.config.mjs: bundle tslib so the ES5 output is self-contained.Note
agentVersionreadspackage.jsonthrough thereact-native/srcentry Metro uses, so it is correct at runtime; thelib/builds resolve the path one level too deep, but RN never loadslib/.-Werror(client side, not SDK); ES5 costs sdk-core ~8KB gzip across all JS SDKs.ref: BT-7354, BT-7406