![]() I expect the emulator to spin up instances of the function for testing but instead, I see this error: ✔ functions: Emulator started at ⚠ TypeError: _onRequestWithOpts is not a functionĪt Object.httpsProvider._onRequestWithOpts (/usr/local/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:278:24)Īt (/usr/local/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:283:34)Īt Object. import * as functions from 'firebase-functions' Įxport const helloWorld = ((request, I'm using the default method created in the index.ts file generated from the firebase-tools cli. I have also exported the admin credentials. I have tried removing the functions directory and creating it again using the firebase-tools cli but I still get the same error. When I run "npm run build" I receive no errors. 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.
0 Comments
Leave a Reply. |