This morning I tried to deploy my react project to firebase hosting but I received this error:
Error: Server Error. certificate has expired
The
I found the solution. First, do this:
npm i -g firebase-tools@latest
It looks like I'm using an outdated version of Firebase CLI. This error happened because the older versions of CLI are linked to legacy Firebase services that are no longer operational. Upgrading to the latest CLI version is the only solution.
Then you need to use new commands instead of deprecated ones. For example:
firebase projects:list //instead of firebase list