TypeError: handler is not a function only when deployed to firebase but not when serve #10227
Labels
examples
Issue was opened via the examples template.
good first issue
Easy to fix issues, good for newcomers
Examples bug report
with-firebase-hosting
Error: > handler is not a function
express
server to handle redirection see https://github.com/jojonarte/with-express-firebasehosting-nextnpm run serve
everything in the application worksnpm run deploy
, deployment was successful however opening the hosting URL results inError: could not handle the request
and in firebase functions logTypeError: handler is not a function at cloudFunction (/srv/node_modules/firebase-functions/lib/providers/https.js:57:9) at /worker/worker.js:783:7 at /worker/worker.js:766:11 at _combinedTickCallback (internal/process/next_tick.js:132:7) at process._tickDomainCallback (internal/process/next_tick.js:219:9)
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
npm install
npm run serve
should make the app worknpm run deploy
should build and upload to hosting and firebase functions and error shouldn't show just like in
npm run serve
I expected it should build and deploy the cloud function and hosting properly to firebase just like how it works using
npm run serve
System information
The text was updated successfully, but these errors were encountered: