-
Notifications
You must be signed in to change notification settings - Fork 83
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
Importing Sentry causes error dealing with fetch. #31
Comments
✋ We're also running into this exact same error! Interestingly, it did work in SDK 27 but as soon as we try upgrading to SDK 28 this red screen error pops up on boot. withspectrum/spectrum#3372 |
hey @AndrewSouthpaw I cannot repro this in a branch new app. I created a new app and added sentry-expo and it worked as expected. Perhaps another package that you and @mxstbr have in your apps is causing an unexpected interaction? |
FYI we resolved the issue by changing our
We changed it to
and the problem resolved itself. |
@mxstbr ^ |
Adding
import Sentry from 'sentry-expo'
to myApp.js
causes my app to crash:Digging around, I've seen issues crop up in
react-native
here andfetch
here andisomorphic-fetch
here. AFAICT,isomorphic-fetch
is the root of the problem, it's not maintained and didn't support React Native, and now people are moving to other packages (cross-fetch
,fetch-everywhere
,fetch-ponyfill
, etc.) as a replacement.Are other people running into this problem? Right now, following the Expo docs, I'm unable to get Sentry to work for React Native. 😞
Versions:
The text was updated successfully, but these errors were encountered: