firebaseで”Could not reach Cloud Firestore backend.”というエラーを直した方法

@firebase/firestore: Firestore (7.7.0): Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds.
This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.

というエラーがでてちょっと困ったんですが自分の環境では下記の方法で直りました。

  1. $npm i -g firebase-toolsで最新版をインストール
  2. $npm run devでリスタート