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
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.