Skip to content

Source maps not automatically uploaded (Expo bare + RN 0.79.5) #5143

@sebastian7722

Description

@sebastian7722

What React Native libraries do you use?

Hermes, RN New Architecture

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

7.0.1

How does your development environment look like?

System:
  OS: macOS 15.6.1
  CPU: (8) x64 Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
  Memory: 205.98 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.13.1
    path: /usr/local/bin/node
  Yarn: Not Found
  npm:
    version: 11.5.2
    path: /usr/local/bin/npm
  Watchman:
    version: 2025.06.30.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK:
    API Levels:
      - "33"
      - "34"
      - "35"
    Build Tools:
      - 30.0.3
      - 33.0.0
      - 33.0.1
      - 34.0.0
      - 35.0.0
    System Images:
      - android-24 | Google APIs Intel x86 Atom
      - android-24 | Google Play Intel x86 Atom
      - android-33 | Google Play Intel x86_64 Atom
      - android-34 | Google APIs Intel x86_64 Atom
      - android-34 | Google Play Intel x86_64 Atom
      - android-35 | Google Play Intel x86_64 Atom
      - android-35 | Pre-Release 16 KB Page Size Google Play Intel x86_64 Atom
    Android NDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23726.103.2422.12816248
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.9
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 18.0.0
    wanted: 18.0.0
  react:
    installed: 19.0.0
    wanted: 19.0.0
  react-native:
    installed: 0.79.5
    wanted: 0.79.5
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true



package.json
{
  "name": "AwesomeProject",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "lint": "eslint .",
    "start": "react-native start",
    "test": "jest"
  },
  "dependencies": {
    "@sentry/react-native": "^7.0.1",
    "expo": "~53.0.0",
    "react": "19.0.0",
    "react-native": "0.79.5"
  },
  "devDependencies": {
    "@babel/core": "^7.25.2",
    "@babel/preset-env": "^7.25.3",
    "@babel/runtime": "^7.25.0",
    "@react-native-community/cli": "18.0.0",
    "@react-native-community/cli-platform-android": "18.0.0",
    "@react-native-community/cli-platform-ios": "18.0.0",
    "@react-native/babel-preset": "0.79.5",
    "@react-native/eslint-config": "0.79.5",
    "@react-native/metro-config": "0.79.5",
    "@react-native/typescript-config": "0.79.5",
    "@types/jest": "^29.5.13",
    "@types/react": "^19.0.0",
    "@types/react-test-renderer": "^19.0.0",
    "eslint": "^8.19.0",
    "jest": "^29.6.3",
    "prettier": "2.8.8",
    "react-test-renderer": "19.0.0",
    "typescript": "5.0.4"
  },
  "engines": {
    "node": ">=18"
  }
}


Sentry.init()

Sentry.init({
  dsn: 'MY_DSN',

  // Adds more context data to events (IP address, cookies, user, etc.)
  // For more information, visit: https://docs.sentry.io/platforms/react-native/data-management/data-collected/
  sendDefaultPii: true,

  // uncomment the line below to enable Spotlight (https://spotlightjs.com)
  // spotlight: __DEV__,
});

Steps to Reproduce

  1. npx @react-native-community/cli@latest init AwesomeProject --version 0.79.5

  2. npx install-expo-modules@latest (switch to Expo bare workflow)

  3. npx @sentry/wizard@latest -i reactNative (wizard added Sentry config)

    • Are you using Sentry SaaS or self-hosted Sentry? YES
    • Do you already have a Sentry account? YES
    • Do you want to enable Session Replay to help debug issues? NO
    • Do you want to enable the Feedback Widget to collect feedback from your users? NO
    • Optionally add a project-scoped MCP server configuration for the Sentry MCP? NO
    • Have you successfully sent a test event? YES
  4. Android release build & run:
    ./gradlew assembleRelease (for android)
    npx expo run:android --variant release

  5. iOS release build & run:
    npx expo run:ios --configuration release

Trigger a JS error

with iOS release or Android release

(e.g., throw new Error('Hello, Sentry!')).

Expected Result

Source maps with Debug IDs are uploaded automatically.

Actual Result

Sentry UI shows minified stack (app:///index.android.bundle … line 1:xxxxx), app:///main.jsbundle
“Source Map Uploads” page says No source maps uploaded.

Metadata

Metadata

No fields configured for issues without a type.

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions