nitro
nitro copied to clipboard
build does not include required files from firebase
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
@danielroe Can you please check on this?
@danielroe Kindly reminder for this :)
I can't reproduce this issue.
Steps:
- upgraded your project to Nuxt RC (also deleted lockfile and installed with yarn).
- 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"
}
}
- ran
NITRO_PRESET=firebase yarn build
- updated
firebase.json
with my test project id. - ran
firebase deploy --project <myprojectid>
Is it possible the issue is that you didn't add the required dependencies?
Just to make sure: The reproduction project was not meant to be run in a firebase environment, but in a nodejs server
Sorry, my mistake!
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 I don't remember, unfortunately. I might have used a different version at the time
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 🙏🏼