Closed Amurmurmur closed 10 months ago
Reproducible demo https://github.com/Amurmurmur/test-expo
This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed.
This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.
Summary
For some reason when sentry is initialised Promise.allSettled is undefined![image](https://github.com/expo/sentry-expo/assets/8608333/fe970aa0-c15d-42b6-990e-a04feec5d5a7)
Getting a WARN Possible Unhandled Promise Rejection (id: 0): TypeError: Cannot convert undefined value to object
And a whats shown on a screenshot: non-std C++ exception
Works just find when using bugsnag, so its 100% this package causing it.
Managed or bare workflow? If you have
ios/
orandroid/
directories in your project, the answer is bare!bare
What platform(s) does this occur on?
Android, iOS
SDK Version (managed workflow only)
No response
Environment
expo-env-info 1.0.5 environment info: System: OS: macOS 13.4 Shell: 5.9 - /bin/zsh Binaries: Node: 17.9.1 - ~/.nvm/versions/node/v17.9.1/bin/node Yarn: 3.5.0 - /opt/homebrew/bin/yarn npm: 8.11.0 - ~/.nvm/versions/node/v17.9.1/bin/npm Watchman: 2023.06.12.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /usr/local/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.10121639 Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild npmPackages: expo: ~48.0.19 => 48.0.19 react: 18.2.0 => 18.2.0 react-dom: 18.2.0 => 18.2.0 react-native: 0.71.8 => 0.71.8 react-native-web: ~0.18.12 => 0.18.12 npmGlobalPackages: eas-cli: 3.10.2 expo-cli: 6.3.9 Expo Workflow: bare
Reproducible demo or steps to reproduce from a blank project
Just follow sentry-expo instructions start expo-devclient
Also getting this in a console WARN Possible Unhandled Promise Rejection (id: 0): TypeError: Cannot convert undefined value to object
The code to initiate Sentry: Sentry.init({ dsn: Constants?.expoConfig?.extra?.sentryDsn, enableInExpoDevelopment: true, debug: true, // If
true
, Sentry will try to print out useful debugging information if something goes wrong with sending the event. Set it tofalse
in production });