You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HI all,
I can build and deploy my app successfully to Firebase hosting when I run firebase deploy. However, I want to integrate the ability to simply push to my Github repo and have it automatically deploy to Firebase Hosting and save a step. I followed the Firebase hosting docs but not successfully in getting this set up properly. I get the following error when running npm ci && npm run build in Github runner:
rror: [nuxt] [request error] [unhandled] [500] The default Firebase app does not exist. Make sure you call initializeApp() before using any of the Firebase services.
at AppStore.getApp (./node_modules/firebase-admin/lib/app/lifecycle.js:65:19)
at getApp (./node_modules/firebase-admin/lib/app/lifecycle.js:106:36)
at getAuth (./node_modules/firebase-admin/lib/auth/index.js:50:34)
at ./.nuxt/prerender/chunks/app/server.mjs:1806:21
at ./.nuxt/prerender/chunks/app/server.mjs:[142](https://XXXX/actions/runs/6903854587/job/18783376318#step:3:143):70
at fn2 (./.nuxt/prerender/chunks/app/server.mjs:182:45)
at Object.callAsync (./node_modules/nuxi/dist/shared/nuxi.2879253c.mjs:93:55)
at ./.nuxt/prerender/chunks/app/server.mjs:184:56
at Object.runWithContext (./node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:2960:18)
at callWithNuxt (./.nuxt/prerender/chunks/app/server.mjs:184:24)
[log] [nitro] ├─ / (452ms)
│ └── Error: [500]
[log] [nitro] ├─ /contact (451ms)
│ └── Error: [500]
[log] [nitro]
Errors prerendering:
[log] [nitro] ├─ / (452ms)
│ └── Error: [500]
[log] [nitro] ├─ /contact (451ms)
│ └── Error: [500]
[log] [nitro]
Error: Exiting due to prerender errors.
at prerender (node_modules/nitropack/dist/shared/nitro.3d0a4b01.mjs:214:11)
at async node_modules/nuxt/dist/index.mjs:2986:7
at async build (node_modules/nuxt/dist/index.mjs:4375:5)
at async Object.run (node_modules/nuxi/dist/chunks/build.mjs:92:5)
at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.c6444792.mjs:1647:7)
at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.c6444792.mjs:1638:11)
at async runMain$1 (node_modules/nuxi/dist/shared/nuxi.c6444792.mjs:1770:7)
Error: Exiting due to prerender errors.
Error: Process completed with exit code 1.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
HI all,
I can build and deploy my app successfully to Firebase hosting when I run
firebase deploy
. However, I want to integrate the ability to simply push to my Github repo and have it automatically deploy to Firebase Hosting and save a step. I followed the Firebase hosting docs but not successfully in getting this set up properly. I get the following error when runningnpm ci && npm run build
in Github runner:Anyone got any advice on how to fix?
Beta Was this translation helpful? Give feedback.
All reactions