angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

Installing @angular/fire on IDX adds an unrecognized locationId

Open christhompsongoogle opened this issue 1 year ago • 3 comments

Related issue: https://github.com/angular/angularfire/issues/3452

When installing @angular/fire from ng add the firebase config is installed with a locationId field that isn't recognized. I installed firestore but I think this also applies to storage, and likely some others.

Interestingly the firebase config in the console (https://console.firebase.google.com/u/3/project/myprojectid/settings/general/web) doesn't contain a locationId:

const firebaseConfig = {
  apiKey: "",
  authDomain: "",
  projectId: "",
  storageBucket: "",
  messagingSenderId: "",
  appId: "",
  measurementId: ""
};

This may be coming from firebase-tools but at first glance I don't know where exactly. Example: src/init/features/project.ts

Versions:

Angular: 18.1.2

Firebase: 13.13.1

AngularFire: 18.0.1

Expected behavior

Recognize the locationId in the config or if not supported we could strip it from the config.

image

christhompsongoogle avatar Jul 31 '24 18:07 christhompsongoogle

This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Jul 31 '24 18:07 google-oss-bot

I have the same problem... has anyone solved it?

danguerrag avatar Aug 27 '24 03:08 danguerrag

The solution in the near-term is just to remove the locationId completely and it should work.

christhompsongoogle avatar Aug 27 '24 22:08 christhompsongoogle