Can't test cloud functions locally, emulator fails to start with TypeError: _onRequestWithOpts is not a function
When I try to start the shell for local testing from the functions directory in my project, the emulator starts but my functions are not able to be loaded. When I run "npm run build" I receive no errors. What is happening? I have tried removing the functions directory and creating it again using the firebase-tools cli but I still get the same error. I have also exported the admin credentials. I'm using the default method created in the index.ts file generated from the firebase-tools cli. import * as functions from 'firebase-functions'; import * as admin from 'firebase-admin'; admin