vercel / next.js

The React Framework
https://nextjs.org
MIT License
127.5k stars 27.04k forks source link

TypeError: handler is not a function only when deployed to firebase but not when serve #10227

Open jojonarte opened 4 years ago

jojonarte commented 4 years ago

Examples bug report

with-firebase-hosting

Error: > handler is not a function

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to https://github.com/jojonarte/with-express-firebasehosting-next
  2. follow manual download instructions
  3. follow firebase setup instructions
  4. npm install
  5. npm run serve should make the app work
  6. npm run deploy
  7. view the URL

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

thevvv36 commented 4 years ago

hey can i contribute a take this issue

jojonarte commented 4 years ago

sure

shivgodi7 commented 3 years ago

Hello folks ! Any fix available for this issue ? Thanks !

balazsorban44 commented 2 years ago

@thevvv36 do you still have interest in helping out on this?

aayank13 commented 3 weeks ago

Can I work on this issue?

Edit by maintainer bot: Comment was automatically minimized because it was considered unhelpful. (If you think this was by mistake, let us know). Please only comment if it adds context to the issue. If you want to express that you have the same problem, use the upvote 👍 on the issue description or subscribe to the issue for updates. Thanks!