question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[sentry-expo] Sourcemap not found with expo-updates

See original GitHub issue

🐛 Bug Report

Summary of Issue

Seems that this issue https://github.com/expo/sentry-expo/issues/134 is regression with the latest versions of expo, expo-updates and sentry-expo

I’m testing the 3.0.0-rc4. If you install an update via expo-updates, Sentry can’t found the sourcemaps.

Environment - output of expo diagnostics & the platform(s) you’re targeting

  Expo CLI 3.27.13 environment info:
    System:
      OS: macOS 10.15.5
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 14.13.0 - /usr/local/bin/node
      Yarn: 1.19.1 - /usr/local/bin/yarn
      npm: 6.14.8 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    Managers:
      CocoaPods: 1.9.3 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: iOS 14.0, DriverKit 19.0, macOS 10.15, tvOS 14.0, watchOS 7.0
      Android SDK:
        Android NDK: 21.3.6528147
    IDEs:
      Android Studio: 4.0 AI-193.6911.18.40.6514223
      Xcode: 12.0/12A7209 - /usr/bin/xcodebuild
    npmPackages:
      expo: ~39.0.2 => 39.0.3
      react: 16.13.1 => 16.13.1
      react-dom: 16.13.1 => 16.13.1
      react-native: ~0.63.3 => 0.63.3
      react-native-web: ~0.13.12 => 0.13.14
    npmGlobalPackages:
      expo-cli: 3.27.13
    Expo Workflow: bare

Reproducible Demo

Repo: https://github.com/RodolfoGS/sentry-test

  1. git clone git@github.com:RodolfoGS/sentry-test.git
  2. cd sentry-test
  3. yarn install
  4. Configure the following files with your Sentry values (org, project, token and dsn)
 - android/sentry.properties
 - app.json
 - ios/sentry.properties
 - App.js
  1. expo publish (to update EXPO_UPDATE_URL property)
  2. Build APK as release
  3. Install in your device, run and tap on Crash Now button
  4. The crash appears perfectly on Sentry, with their sourcemaps 👍
  5. expo publish
  6. Tap on Update Now button
  7. Tap on Crash Now button
  8. The crash appears on Sentry without their sourcemaps 👎

I’m experimenting this issue on Android and iOS

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
cruzachcommented, Dec 4, 2020

fix is released in sentry-expo@3.0.4

1reaction
RodolfoGScommented, Oct 6, 2020

Yes I did those steps, I created a demo to reproduce

Read more comments on GitHub >

github_iconTop Results From Across the Web

[3.0.0-rc2] Sourcemap not found with expo-updates on Android
I'm testing the 3.0.0-rc2 . If you install an update via expo-updates, Sentry can't found the sourcemaps. Environment - output of expo ......
Read more >
Using Sentry - Expo Documentation
Uploading sourcemaps for updates · Run eas update . This will generate a dist folder in your project root, which contains your JavaScript...
Read more >
Using Sentry with Expo
Expo is an excellent way to quickly create and play around with your React Native app. Now you can also use Sentry together...
Read more >
Using Sentry with Expo for React Native
Expo is an excellent way to quickly create and play around with your react native app. Now you can also use Sentry together...
Read more >
Sentry-expo - npm.io
This new update will not be published automatically and will exist only in the binary with which it was bundled. Since it isn't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found