If you're using firebase-functions v6.x.x, I think the issue here might be related to how firebase-functions is being imported. Starting firebase-functions v6.0.0, the default entry point of the package was changed to v2 instead of v1.
Since it looks like you're using a v1 function, could you try updating your code to explicitly import "firebase-functions/v1"? The updated code would look something like:
"const fireFunctions = require("firebase-functions/v1"); // Imports v1 functions"