このエラーが起こる原因
実はこのエラーというか警告文についてはExpo
のKnown issuesの一つに挙げられています。つまり、2022年3月17日現在、Sentry
を導入したプロジェクトをeas build
コマンドでビルドすることは不可能です。
環境
package.json
の一部抜粋です。
"dependencies": {
"expo": "^44.0.0",
"react": "17.0.1",
"react-native": "0.64.3",
}
詳しいエラー文
> Task :app:bundleReleaseJsAndAssets_SentryUploadCleanUp SKIPPED
[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.
[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] Execution failed for task ':app:bundleReleaseJsAndAssets_SentryUpload'.
[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
[stderr] --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 3m 48s
最後に
さすがにexpo build
コマンドが廃止になる2023年1月4日までにはSentryとeas buildを併用できるようになると思いますが、その確証が無いのでこの際にCrashlyticsへ変更するのも悪くない選択肢かもしれません。