Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Firestore] Cannot set properties of undefined (setting 'fromParams')

Open
#2,498 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
express, node.js, typescript
Domain
backend, databases

Research direction

The trace points to ClientPool.clientFactory in node_modules/@google-cloud/firestore/build/src/index.js, and the report directs Firestore issues to the nodejs-firestore repository. Start by confirming whether the collection().get() example reproduces the failure there; no firebase-admin-node source file or test is named, so ownership and a definition of done remain unresolved.

Written by the indexing model from the issue text.

Description

api: firestore
[READ] Step 1: Are you in the right place?

Cloud Firestore support is provided by the @google-cloud/firestore library. Therefore the easiest and most efficient way to get Firestore issues resolved is by directly reporting them at the nodejs-firestore GitHub repo.

If you still think the problem is related to the code in this repository, then read on.

  • For issues or feature requests related to the code in this repository
    file a Github issue.
  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general Firebase discussion, use the firebase-talk
    google group.
  • For help troubleshooting your application that does not fall under one
    of the above categories, reach out to the personalized
    Firebase support channel.
[REQUIRED] Step 2: Describe your environment
  • Operating System version: macOs Sonoma 14.2.1
  • Firebase SDK version: 11.8.0
  • Firebase Product: Firestore
  • Node.js version: 20.0.0
  • NPM version: 9.6.4
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:

What happened? How can we make the problem occur?
This could be a description, log/console output, etc.

You can enable logging for Firestore by including the following line in your code:

admin.firestore.setLogFunction(console.log);

This will print Firestore logs to the console.

Relevant Code:

This is the trace i got by following the past point

Firestore (6.8.0) 2024-03-18T15:41:13.218Z QLnjt [Firestore._retry]: Retrying request that failed with error: TypeError: Cannot set properties of undefined (setting 'fromParams')
at ClientPool.clientFactory (MYPATH/api/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/index.js:486:42)
at ClientPool.acquire (MYPATH/api/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/pool.js:103:35)
at ClientPool.run (MYPATH/api/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/pool.js:217:29)
at MYPATH/api/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/index.js:1391:30
at Firestore._retry (MYPATH/api/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/index.js:1251:30)
at DocumentReader.fetchDocuments (MYPATH/api/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/document-reader.js:89:28)
at DocumentReader.get (MYPATH/api/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/document-reader.js:52:9)

Basically there's a function that runs before starting my express.js app, that function just calls

myFunction().then(() => {
  app.listen(() => console.log('Server running on port 3000'))
})

The function calls

fs.collection('myCollection').get()

where fs is exported from other file that exports like this

import admin from 'firebase-admin'
export const fs = admin.firestore()
Dominant language
TypeScript
Stars
1.7k
Forks
419
Avg merge
4d 20h
Merged PRs (30d)
16

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firebase/firebase-admin-node

All issues in firebase/firebase-admin-node

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.