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
{{ message }}
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
I'm trying to execute Firestore queries inside of Google Cloud Functions utilizing Qwik together with routeLoader$ in order to fetch and pre-render data server-side. Everything works fine in development and when using the preview command, but upon deploying the app to Firebase Hosting and Cloud Functions (Using the Firebase integration), the app returns Error 500 - Internal Server Error.
Upon opening the Cloud Function logs, I can see, that it fails with the following error message which leads me to believe, that there is something wrong with the @google-cloud/firestore and firebase-admin(Which utilizes this package under the hood as far as I know):
TypeError: Cannot set properties of undefined (setting 'fromParams')
at ClientPool.clientFactory (file:///workspace/server/assets/@qwik-city-plan-c264a646.mjs:167322:43)
at ClientPool.acquire (file:///workspace/server/assets/@qwik-city-plan-c264a646.mjs:153428:31)
at ClientPool.run (file:///workspace/server/assets/@qwik-city-plan-c264a646.mjs:153535:28)
at file:///workspace/server/assets/@qwik-city-plan-c264a646.mjs:168168:28
at Firestore._retry (file:///workspace/server/assets/@qwik-city-plan-c264a646.mjs:168038:26)
at async file:///workspace/server/assets/@qwik-city-plan-c264a646.mjs:145922:33
Caused by: Error
at AggregateQuery._get (file:///workspace/server/assets/@qwik-city-plan-c264a646.mjs:145879:21)
at AggregateQuery.get (file:///workspace/server/assets/@qwik-city-plan-c264a646.mjs:145869:19)
at Object.s_eNFdi8qBn48 (file:///workspace/server/assets/@qwik-city-plan-c264a646.mjs:168225:68)
at Object.invoke (file:///workspace/server/assets/@qwik-city-plan-c264a646.mjs:1461:42)
at file:///workspace/server/assets/@qwik-city-plan-c264a646.mjs:4100:131
at then (file:///workspace/server/assets/@qwik-city-plan-c264a646.mjs:137:81)
at file:///workspace/server/assets/@qwik-city-plan-c264a646.mjs:4091:14
at Object.qrl (file:///workspace/server/assets/@qwik-city-plan-c264a646.mjs:4071:18)
at file:///workspace/server/entry-firebase.mjs:464:37
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
I'm trying to execute Firestore queries inside of Google Cloud Functions utilizing Qwik together with
routeLoader$in order to fetch and pre-render data server-side. Everything works fine in development and when using the preview command, but upon deploying the app to Firebase Hosting and Cloud Functions (Using the Firebase integration), the app returns Error 500 - Internal Server Error.Upon opening the Cloud Function logs, I can see, that it fails with the following error message which leads me to believe, that there is something wrong with the
@google-cloud/firestoreandfirebase-admin(Which utilizes this package under the hood as far as I know):Current Setup
Environment details
Steps to reproduce
@google-cloud/firestoreorfirebase-adminpackagerouteLoader$which executes Firestore queriesrouteLoader$should result in an Error 500 - Internal Server Error.