Skip to content

Commit b2da380

Browse files
antonisclaude
andcommitted
fix(ci): Set REACT_NATIVE_NODE_MODULES_DIR for Expo SDK 54 builds
Expo SDK 54 upgraded to React Native 0.81, which uses the new Hermes profiling API. In the monorepo, the Sentry SDK's podspec was detecting RN 0.80 (from packages/core/node_modules) instead of 0.81 (from samples/expo/node_modules), causing it to use the old Hermes API which was removed in RN 0.81. Setting REACT_NATIVE_NODE_MODULES_DIR ensures the podspec detects the correct React Native version during CI builds. This only affects the CI build - no changes to the core SDK. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 1d2e71f commit b2da380

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/sample-application-expo.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ jobs:
106106
[[ "${{ matrix.build-type }}" == "production" ]] && ENABLE_PROD=1 || ENABLE_PROD=0
107107
[[ "${{ matrix.ios-use-frameworks }}" == "dynamic-frameworks" ]] && export USE_FRAMEWORKS=dynamic
108108
echo "ENABLE_PROD=$ENABLE_PROD"
109+
# Monorepo fix: Point Sentry SDK to correct React Native version (0.81 vs 0.80)
110+
export REACT_NATIVE_NODE_MODULES_DIR="$(cd ../node_modules/react-native && pwd)"
109111
PRODUCTION=$ENABLE_PROD pod install
110112
cat Podfile.lock | grep $RN_SENTRY_POD_NAME
111113

0 commit comments

Comments
 (0)