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 }}
Repository navigation
Cannot deploy indexes in a project with multiple firestore dbs: TypeError: Cannot read properties of undefined (reading 'map') #8114
[info]
[info] === Deploying to 'project_id'...
[info]
[info] i deploying firestore
[info] i firestore: deploying indexes...
[debug] [2025-01-13T14:58:39.744Z] TypeError: Cannot read properties of undefined (reading 'map')
at deployIndexes (<path_to_node_modules>/firebase-tools/lib/deploy/firestore/deploy.js:24:38)
at default_1 (<path_to_node_modules>/firebase-tools/lib/deploy/firestore/deploy.js:42:46)
at chain (<path_to_node_modules>/firebase-tools/lib/deploy/index.js:40:15)
at deploy (<path_to_node_modules>/firebase-tools/lib/deploy/index.js:101:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[error]
[error] Error: An unexpected error has occurred.
Reacted by M. Umar Farooq, Jacek Nijaki, itsikbelson-spotlight, duncannz and Norbertas
Thanks for providing detailed steps to reproduce the issue as well as the error raised, @jmysliv! I'm able to replicate the error you encountered. Let me raise this to our engineering team.
Similar problem occurs when trying to run firebase deploy --only firestore:rules when having multiple databases. In such scenario there is no error, but also nothing happens:
% firebase deploy --only firestore:rules
=== Deploying to '***'...
i deploying firestore
✔ Deploy complete!
Hi, has anyone managed to fix this? Currently struggling with this
I managed to workaround it when deploying indexes for one firestore database by using an object instead of an array in the firestore definition in firebase.json:
Activity
aalej commentedon Jan 13, 2025
Thanks for providing detailed steps to reproduce the issue as well as the error raised, @jmysliv! I'm able to replicate the error you encountered. Let me raise this to our engineering team.
Internal tracking bug: b/389699819
UmarFarooq-Ch commentedon Feb 17, 2025
any update on this bug?
jaceknijaki commentedon Feb 20, 2025
Similar problem occurs when trying to run
firebase deploy --only firestore:ruleswhen having multiple databases. In such scenario there is no error, but also nothing happens:kervyntan commentedon Apr 9, 2025
Hi, has anyone managed to fix this? Currently struggling with this
itsikbelson-spotlight commentedon Apr 25, 2025
I managed to workaround it when deploying indexes for one firestore database by using an object instead of an array in the firestore definition in
firebase.json:duncannz commentedon May 2, 2025
The workaround provided by @itsikbelson-spotlight also worked for me!
jakenotjay commentedon Oct 10, 2025
Still occurs for me, when using the documented format:
Indexes result in an error, and rules deploy simply do nothing...
naveenaviato commentedon Oct 13, 2025
Any update on this?
ayanko commentedon Dec 27, 2025
I guess it's time to fix this ugly issue...
Fix crash in Firestore index deployment
Digital-Coder commentedon Mar 4, 2026
Are there any blockers? It's been over a year now. Deploying indexes and rules to multiple databases in the same project is buggy.