Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Installing @angular/fire on IDX adds an unrecognized locationId #3556

Closed
christhompsongoogle opened this issue Jul 31, 2024 · 3 comments · Fixed by #3578
Closed

Installing @angular/fire on IDX adds an unrecognized locationId #3556

christhompsongoogle opened this issue Jul 31, 2024 · 3 comments · Fixed by #3578

Comments

@christhompsongoogle
Copy link

Related issue: #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

@google-oss-bot
Copy link

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

@donksper
Copy link

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

@christhompsongoogle
Copy link
Author

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants