I updated my firebase-functions and now I get this error in the firebase console. The code is still the same but I get an error now:
/srv/node_modules/@google
You can also get this error if you are running node v8
. Upgrading to node v10
resolves this error.
If you are managing your node version using nvm
, then run:
nvm install v10 --lts
I think it is a better solution then downgrading firebase-admin
library.
Downgrade firebase-admin and firebase-functions to version: "firebase-admin": "^8.10.0", "firebase-functions": "^3.6.1" and it will work.
Thanks to Marcel Hoekstra for posting this in the comments.