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
Error: Firestore database configuration is missing in firebase.json. #8678
This commit, fd33db9, introduces a bug with the error message we are seeing.
@joehan you may need to revisit this new features expectations as it's giving problems to folks who have used firebase init with older versions than 14.4.0 that don't have the following fields populated.
It appears the CLI needs the location and database props to be available in the firebase.json or deployment fails. These properties have not been required before and were not in the firebase init experience until 2 weeks ago in 14.4.0. This broke our CI and nothing is mentioned in the release documentation about adding them.
firebase deploy functions. Only functions and hosting files are expected to change during this deploy.
[REQUIRED] Actual behavior
Our deploy pipeline that worked earlier today just started to fail with Firestore database configuration is missing in firebase.json after no changes to the firebase.json
i deploying firestore
i firestore: reading indexes from firestore.indexes.json...
i cloud.firestore: checking firestore.rules for compilation errors...
✔ cloud.firestore: rules file firestore.rules compiled successfully
Error: Firestore database configuration is missing in firebase.json.
Reacted by Stellan, Brian Montero, SAIGUSA Tomotada, Bertrand Guillozet, k-okajima, Tomoya Kawamura, Philipp Omenitsch, perci-artur, Scott Davis, Felix and 4 more
This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.
Having the same problem for 1 gen. Cloud Functions, deployed throughout the day without problems until this error came up (no changes to the firebase.json file either), any idea when this could be resolved?
Update firebase-tools to the latest version: npm install -g firebase-tools
Re-run firebase init in project root directory, which will overwrite the corresponding section of the 'firebase.json' file back to the default configuration, but it will also add database and location configuration.
Hey folks, apologies for the issue this has caused and thanks bringing this to our attention. This does seem like a bug on the latest version since the firebase.json configs set up with older versions like v14.3.1 are raising errors during deployments.
Let me check this with our engineering team.
Reacted by Scott Davis, Dimitar Danailov (a.k.a Mitco) and Brian Montero
I'd like to confirm. My team tested and used the previous version: [email protected]. The problem is related with the latest version deployed several hours ago.
Hi all, extremely sorry for the inconvience here - this was not intended to be a breaking change and I overlooked this during code review. I've got a fix for the immediate issue going in soon, and we'll release a patch version today to fix this. Going forward, I'm going to look into how our CI tests missed this and fix that as well.
Reacted by Behcet, Scott Davis, Daniel Escobedo, Brian Montero, dear-developer, k-okajima and Bertrand Guillozet
Activity
google-oss-bot commentedon May 30, 2025
This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.
CambodianCoder commentedon May 30, 2025
Same issue here. No changes were made to the firebase.json file.
CambodianCoder commentedon May 30, 2025
Yeah, specifically, lines fd33db9#diff-180cc5fee625ca5dad02d2b37c504c4ab194fbe09d4de850c9775bff7952eed1R113 and fd33db9#diff-180cc5fee625ca5dad02d2b37c504c4ab194fbe09d4de850c9775bff7952eed1R22-R24
fix: Add missing firestore properties
brianmontero commentedon May 30, 2025
Having the same problem for 1 gen. Cloud Functions, deployed throughout the day without problems until this error came up (no changes to the firebase.json file either), any idea when this could be resolved?
stellan-wu commentedon May 30, 2025
This temporary fix makes my deployment work:
npm install -g firebase-toolsfirebase initin project root directory, which will overwrite the corresponding section of the 'firebase.json' file back to the default configuration, but it will also adddatabaseandlocationconfiguration.Artl13 commentedon May 30, 2025
Same issue with deployment... Firestore database configuration is missing in firebase.json
when roll back to previous ver, works fine
aalej commentedon May 30, 2025
Hey folks, apologies for the issue this has caused and thanks bringing this to our attention. This does seem like a bug on the latest version since the firebase.json configs set up with older versions like v14.3.1 are raising errors during deployments.
Let me check this with our engineering team.
ArturAmpilogov commentedon May 30, 2025
As it was mentioned,
firebase-toolsgot the breaking config changes.Add to your
firebase.jsonfile the following fields:database- required,location- if not set, will default to nam5Example:
dimitardanailov commentedon May 30, 2025
I'd like to confirm. My team tested and used the previous version:
[email protected]. The problem is related with the latest version deployed several hours ago.joehan commentedon May 30, 2025
Hi all, extremely sorry for the inconvience here - this was not intended to be a breaking change and I overlooked this during code review. I've got a fix for the immediate issue going in soon, and we'll release a patch version today to fix this. Going forward, I'm going to look into how our CI tests missed this and fix that as well.
fix: Add missing firestore properties