0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Expoでビルド後だけ発生するエラー

Posted at

事象

  • ExpoをAndroidパッケージに出力する。(APK、bundle問わず発生)(iosでも再現するらしい、参考情報参照)
  • アプリを実機起動すると異常終了する
  • エラー通知等はなし。Expoの開発環境では発生しない
  • オープンテストで異常終了をレポートすると、google play console上に次のエラーログが確認できる
    スクリーンショット 2021-10-30 22.59.22.png
  at host.exp.exponent.experience.BaseExperienceActivity.lambda$consumeErrorQueue$0 (BaseExperienceActivity.java:210)

  • バージョン Expo 4.10.1

原因

参考資料

https://github.com/moment/moment/issues/5214
https://github.com/moment/moment/issues/5252

  • Moment.js の処理時にExpo環境内でバグがある。
  • 具体的には次のメソッド実行時に異常終了していた
app.js
Moment.locale('jp');

対処

  • Moment.jsの利用箇所を置き換えた
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?