Skip to content

EAS Build eager bundling skips React Native source map upload to Sentry #6584

Description

@NicoPaxy

What React Native libraries do you use?

Expo Application Services (EAS), Expo (mobile only), Hermes, Expo Router

Are you using sentry.io or on-premise?

sentry.io (SaS)

Are you using any other error monitoring solution alongside Sentry?

No

Other Error Monitoring Solution Name

No response

@sentry/react-native SDK Version

8.19.0

How does your development environment look like?

⬇  Place the `npx react-native@latest info` output here. ⬇

Note: `npx react-native info` is not applicable to this project (managed Expo workflow, no @react-native-community/cli dependency). Environment described manually below.

Local machine (used only to trigger `eas build`; native compilation happens on EAS Build's remote macOS workers, not locally):
OS: macOS 26.5.2 (Build 25F84)
Node: v24.18.0
npm: 11.16.0
Package manager lockfile: package-lock.json (npm)
Xcode: not installed locally (only Command Line Tools) — not needed, native iOS build runs remotely on EAS Build
Watchman: not installed locally
CocoaPods: not installed locally
eas-cli: 21.7.0 (via npx)

Relevant package versions (package.json):
react: 19.2.3
react-native: 0.86.0
expo: ~57.0.4 (SDK 57)
expo-router: ~57.0.4
expo-dev-client: ~57.0.5
expo-updates: ~57.0.11
@sentry/react-native: ^8.19.0 (installed: 8.19.0)
typescript: ~6.0.3

Sentry.init()

Sentry.init({
dsn: process.env.EXPO_PUBLIC_SENTRY_DSN,
environment: process.env.EXPO_PUBLIC_SENTRY_ENVIRONMENT ?? 'local',
sendDefaultPii: true,
// Enable Logs
enableLogs: true,

// Configure Session Replay
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1,
integrations: [Sentry.mobileReplayIntegration()],

});

Steps to Reproduce

  1. Configure an Expo SDK 57 / React Native 0.86 application with @sentry/react-native 8.19.0 and the Sentry Expo plugin.
  2. Configure SENTRY_AUTH_TOKEN, SENTRY_ORG and SENTRY_PROJECT for the EAS build environment.
  3. Run an EAS native build.
  4. The EAS build completes successfully.
  5. Check the build logs and Sentry: the React Native source map upload step is not executed / no source maps are uploaded.

Expected Result

The EAS build should automatically upload the generated React Native JavaScript bundles and source maps to the configured Sentry project, so production errors can be symbolicated correctly.

Actual Result

The EAS build completes successfully, but the React Native source maps are not uploaded to Sentry. No source map upload step appears to run during the build, leaving production events without the expected source maps.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status
    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions