-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sentry Plugin Does Not Run #380
Comments
I'm having the same issue. The documentation says that running
I've followed every step of the expo-sentry guide to the letter. My app.json is correctly configured in accordance with the guide:
and I've configured SENTRY_AUTH_TOKEN in Eas Secrets. I can't see what I'm missing. |
similar issue happens for me, eas builds works fine, but locally :
], |
Same problem. Is there a workaround to fix this? Having a project without a readable stacktrace is not the best dev experience.... |
Hello everyone, You can upload source maps for EAS Update as easily as {
"expo": {
"plugins": [
[
"@sentry/react-native/expo",
{
"url": "https://sentry.io/",
"warning": "DO NOT COMMIT YOUR AUTH TOKEN",
"authToken": "Click to generate token",
"project": "android",
"organization": "demo"
}
]
]
}
} Update to https://github.com/getsentry/sentry-react-native/releases/tag/5.16.0 or newer to get all the new features. Migration guides available: |
@krystofwoldrich Does this work with |
Hey all! I got this to work. I found that even though I already have the I hope this helps. |
Summary
I followed the instructions here (https://docs.expo.dev/guides/using-sentry/) to setup sentry in my expo managed build. Sentry actually runs just fine in my dev environment, and I can see errors pop up on the sentry dashboard for my project, so that's all good.
Next step is getting the sourcemaps uploaded to sentry ... and that doesn't work at all. I've tried doing
eas build
for both iOS and Android, neither one uploads a sourcemap to sentry ... and in fact, if I look through the build logs I don't see any mention of it even trying to upload the sourcemaps to sentry ... so then I do ayarn expo prebuild --clean
to rebuild my iOS and Android projects, and if I open that project up in XCode, I don't even see the "Upload Debug Symbols to Sentry" build phase ... it's not in the iOS project files. So it's no surprise that theeas build
isn't producing creating or uploading sourcemaps.As far as I can tell, the plugin isn't even running. There are error messages when I do the
prebuild
, it just succeeds as though everything is fine, but I don't think it is working at all. I'm stumped.Is there something I'm doing wrong here?
Managed or bare workflow? If you have
ios/
orandroid/
directories in your project, the answer is bare!managed
What platform(s) does this occur on?
Android, iOS
SDK Version (managed workflow only)
49
Environment
expo-env-info 1.0.5 environment info:
System:
OS: macOS 13.3.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.0.0 - ~/.nvm/versions/node/v18.0.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v18.0.0/bin/yarn
npm: 8.6.0 - ~/.nvm/versions/node/v18.0.0/bin/npm
Watchman: 2023.05.08.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.12.1 - /Users/tphilip/.rubies/ruby-2.7.6/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.9971841
Xcode: 14.3/14E222b - /usr/bin/xcodebuild
npmPackages:
expo: ^49.0.0 => 49.0.6
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: ^0.72.6 => 0.72.6
react-native-web: ~0.19.6 => 0.19.7
npmGlobalPackages:
eas-cli: 5.9.1
Expo Workflow: bare
Reproducible demo or steps to reproduce from a blank project
It works correctly with a basic React Native project
If you create a brand new react native project using
npx react-native@latest init TestSentryConfig
and then run the sentry wizardnpx @sentry/wizard@latest -s -i reactNative
, the iOS project is modified and definitely has the "Upload Debug Symbols to Sentry" build phase.It does not work in a new Expo React Native project
If you create a new expo project
npx create-expo-app my-expo-sentry-test-app
and then install the sentry dependencies:and then run
npm expo prebuild --clean
and look at the iOS project file ... no build phase. No error messages, it all looks like it succeeds just fine, it just doesn't appear to have done anything.The text was updated successfully, but these errors were encountered: