Skip to content

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

Closed

Description

@christhompsongoogle

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

Activity

  1. google-oss-bot commented on Jul 31, 2024

    @google-oss-bot

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

  2. danguerrag commented on Aug 27, 2024

    @danguerrag

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

  3. christhompsongoogle commented on Aug 27, 2024

    @christhompsongoogle
    Author

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

  4. added a commit that references this issue on Dec 7, 2024
    a58b329
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions