Closed shibadog39 closed 1 year ago
resolved by adding dist to Sentry.init and update sentry-expo to 6.2.2(from 6.1.1)
import * as Application from 'expo-application'
Sentry.init({
dsn: SENTRY_DSN,
debug: true,
dist: ${Application.nativeBuildVersion}
})
Summary
When I set
enabled=false
for expo.updates in expo config file (my case: app.config.ts), Sentry.init failed withTypeError: undefined is not a function
.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)
48
Environment
System: OS: macOS 12.6 Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.15.0 - ~/.anyenv/envs/nodenv/versions/18.15.0/bin/node npm: 9.5.0 - ~/.anyenv/envs/nodenv/versions/18.15.0/bin/npm IDEs: Android Studio: 2022.2 AI-222.4459.24.2221.9971841 Xcode: /undefined - /usr/bin/xcodebuild npmGlobalPackages: eas-cli: 3.12.0 Expo Workflow: managed
Reproducible demo or steps to reproduce from a blank project
app.config.ts
App.tsx