nitro icon indicating copy to clipboard operation
nitro copied to clipboard

build does not include required files from firebase

Open pi0 opened this issue 2 years ago • 5 comments

Environment

  • Operating System: Windows_NT
  • Node Version: v16.13.1
  • Nuxt Version: 3.0.0-27338323.1e98259
  • Package Manager: [email protected]
  • Bundler: Vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://github.com/AlexDicy/nuxt-min-reproduction

Describe the bug

Moved from https://github.com/nuxt/framework/issues/2583

Additional context

No response

Logs

No response

pi0 avatar Apr 12 '22 16:04 pi0

@danielroe Can you please check on this?

pi0 avatar Apr 12 '22 16:04 pi0

@danielroe Kindly reminder for this :)

pi0 avatar May 04 '22 11:05 pi0

I can't reproduce this issue.

Steps:

  1. upgraded your project to Nuxt RC (also deleted lockfile and installed with yarn).
  2. added required firebase dependencies. Here's the new package.json:
{
  "private": true,
  "scripts": {
    "dev": "nuxt dev",
    "build": "nuxt build",
    "start": "node .output/server/index.mjs"
  },
  "devDependencies": {
    "firebase-admin": "^10.1.0",
    "firebase-functions": "^3.20.1",
    "firebase-functions-test": "^2.0.0",
    "nuxt": "npm:nuxt3@latest"
  },
  "dependencies": {
    "firebase": "^9.6.1"
  }
}
  1. ran NITRO_PRESET=firebase yarn build
  2. updated firebase.json with my test project id.
  3. ran firebase deploy --project <myprojectid>

Is it possible the issue is that you didn't add the required dependencies?

danielroe avatar May 05 '22 12:05 danielroe

Just to make sure: The reproduction project was not meant to be run in a firebase environment, but in a nodejs server

AlexDicy avatar May 05 '22 13:05 AlexDicy

Sorry, my mistake!

danielroe avatar May 05 '22 16:05 danielroe

danielroe Any update on this, I am having the same issue with "nuxt": "^3.5.2" node 18 and "firebase": "^10.0.0" ?

AlexDicy did you got it working by some alternate way?

Abhayprince avatar Jul 07 '23 17:07 Abhayprince

@Abhayprince I don't remember, unfortunately. I might have used a different version at the time

AlexDicy avatar Jul 08 '23 14:07 AlexDicy

Closing since this issue had been stalled for a while. Please feel free to open a new issue with fresh reproduction if having similar issues 🙏🏼

pi0 avatar May 16 '24 17:05 pi0