The issue for me was not specifying the version of firebase-functions.
const functions = require('firebase-functions/v1'); // Specify /v1
Adding /v1 solved the issue.
/v1