- SDK Version: 40.0.0, Nodejs Version: 14.2.0
- Platforms(Android/iOS/web/all): all
sentry-expo: 3.0.5
I followed the directions here Using Sentry - Expo Documentation, and i get the following error when publishing:
Error uploading sourcemaps to Sentry: spawn [HOME_DIR]/[APP_DIR]/node_modules/@sentry/cli/sentry-cli ENOENT
Here is my postPublish section in app.json:
“hooks”: {
“postPublish”: [
{
“file”: “sentry-expo/upload-sourcemaps”,
“config”: {
“organization”: “organization-slug”,
“project”: “project-name”,
“authToken”: “auth-token-with-all-permissions”
}
}
]
}
Here’s what I added to App.js:
Sentry.init({
dsn: ‘https://[DSN].ingest.sentry.io/[ID]’,
enableInExpoDevelopment: true,
debug: true
});
Why am i getting this error? how do i configure sentry to work with a managed expo 40.0.0 app?