Hello,
After upgrading our backend to the latest version of the firebase-functions SDK (3.21.x), our backend cloud functions are no longer initialized. It's as if the latest SDK cannot see the exported cloud functions. Running on 3.18.1, everything is fine.
Nothing has changed in the way the functions are being exported. Inside the project's function folder, we have an 'src' folder that contains all of our cloud functions (written in Typescript). We run a build that compiles into a single main.js file which is output to another directory also at the root of the functions folder:
/dist/apps/app_name/(main.js)
The functions folder directory looks something like:
functions
-- /src (typescript files)
-- /dist (compile out dir)
-- package.json ("main" points to compiled main.js file)
Inside of package.json we have a "main" property which points the main.js file as the entry point, like:
// package.json
{
[...],
"main": "dist/apps/app_name/main.js",
[...]
}
This sort of structure has never presented any issues before 3.21.1; has something changed? I can't be certain that the issue starts with 3.21.x as I'm upgrading from 3.18.1. Appreciate any assistance. I also have an issue with sharp but I'll create another thread regarding that.
Kindly,
Bryan