Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build next with firebase when serverless mode selected in next.config.js #7391

Closed
HelloKashif opened this issue May 21, 2019 · 6 comments · Fixed by #8246
Closed

Cannot build next with firebase when serverless mode selected in next.config.js #7391

HelloKashif opened this issue May 21, 2019 · 6 comments · Fixed by #8246
Assignees
Milestone

Comments

@HelloKashif
Copy link

Bug report

Cannot build next with firebase when serverless mode selected in next.config.js

Describe the bug

While building we get this error if we try to use firebase and serverless mode is turned on.

Error: package.json does not exist at /package.json

A clear and concise description of what the bug is.

To Reproduce

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

  1. Install firebase in your project
  2. Set mode:'serverless' in next.config.js
  3. Do 'import * as firebase from "firebase/app"' and 'import firebase/firestore' in any page
  4. do next build
  5. Result: Error: package.json does not exist at /package.json

Expected behavior

I'm expecting this to build. And since Zeit Now 2.0 only allows serverless next deployment this error makes it impossible to use now2.0

System information

  • OS: [Windows]
  • Version of Next.js: [8.1.0]
@MatteoGioioso
Copy link

MatteoGioioso commented May 22, 2019

I guess I had the same error, what version of firebase-tools do you have? if you have 6.10.0 try to install the 6.8.0.

firebase/firebase-tools#1320

@HelloKashif
Copy link
Author

HelloKashif commented May 26, 2019

I used 6.10. I’ll try downgrading.

@Timer
Copy link
Member

Timer commented Jun 14, 2019

Hey! We'll have official support for Firebase soon, most likely by the end of next week -- just keeping you updated.

@Timer Timer self-assigned this Jun 14, 2019
@russll
Copy link

russll commented Jul 5, 2019

Guys, are there any updates on this issue?

@michel-p
Copy link

Any updates for Firebase hosting guys ?

@Timer Timer closed this as completed Aug 7, 2019
@Timer Timer added this to the 9.0.4 milestone Aug 8, 2019
@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
6 participants