firebaseのfirestoreにデータを保存して、取り出すときに発生するエラーです。
必要なインデックスが無い、というエラーですね。
mysqlやpostgresqlのようなDBに慣れていると感覚がありませんが、どうやらfirestoreはorderByで取得する場合にインデックスが必須のようです。
つまりインデックスを作成すれば解決するエラーですね。
Unhandled Runtime Error
FirebaseError: The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/nxxxxxxxxx/firestore/indexes?create_composite=0NJQ0FnT2pYaDRFSxA3JlYXRlZEF0W1lX18QAg
FirebaseError: The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/nxxxxxxxxx/firestore/indexes?create_composite=0NJQ0FnT2pYaDRFSxA3JlYXRlZEF0W1lX18QAg
重要なのは You can create it here:以降のURL部分。
ここをクリックするとfirebaseの画面に飛びます。
インデックス作成をクリックすると、firesotreに必要なインデックスが生成されます。
これで解決できた。