Managed workflow, eas-cli/0.48.1 win32-x64 node-v16.4.2
package.json
"expo": "44.0.0",
"@sentry/react-native": "^3.3.5",
"sentry-expo": "^4.0.0",
App.tsx
import * as Sentry from 'sentry-expo';
Sentry.init({
dsn: 'YOUR DSN',
tracesSampleRate: 1.0,
enableInExpoDevelopment: true,
debug: true,
enableAutoSessionTracking: false
});
app.config.ts
jsEngine: 'hermes',
plugins: ['sentry-expo'],
hooks: {
postPublish: [
{
file: 'sentry-expo/upload-sourcemaps',
config: {
organization: SENTRY_ORG,
project: SENTRY_PROJECT
authToken: SENTRY_AUTH_TOKEN
}
}
]
}
eas build log (run gradlew )
> Task :app:bundleReleaseJsAndAssets_SentryUpload_com.organization.appname@1.2.3+6_6 FAILED
Processing react-native sourcemaps for Sentry upload.
> Analyzing 2 sources
> Rewriting sources
> Adding source map references
[stderr] error: project not found
[stderr] Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
[stderr] Please attach the full debug log to all bug reports.
> Task :app:bundleReleaseJsAndAssets_SentryUploadCleanUp SKIPPED
[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] Execution failed for task ':app:bundleReleaseJsAndAssets_SentryUpload_com.organization.appname@1.2.3+6_6'.
[stderr] > Process 'command '/home/expo/workingdir/build/node_modules/@sentry/cli/bin/sentry-cli'' finished with non-zero exit value 1
[stderr] * Try:
[stderr] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 5m 40s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings
2 actionable tasks: 2 executed
Error: Gradle build failed with unknown error. Please see logs for the "Run gradlew" phase.
Build works fine without “Sentry” installed.