Skip to content

Firebase.json empty after running 'ng add @angular/fire' #3559

Description

@johnmckay-reward

Version info

Angular:
18.1.4

Firebase:
13.15.0

AngularFire:
18.0.1

Other (e.g. Ionic/Cordova, Node, browser, operating system):
Node v20.11.0
macOS 14.1.1 (23B81)

How to reproduce these conditions

  • Create a new Angular project
  • Use the above combination of dependencies and run ng add @angular/fire
  • Login and select your Firebase project
  • Work through the steps in the teminal, select the services to add (such as Firestore)
  • firebase.json is empty
image
  • app.config.json is updated as expected
image

Failing test unit, Stackblitz demonstrating the problem

Steps to set up and reproduce

  • StackBlitz is tricky to recreate as need to login to your Firebase account
  • If you follow the steps above, it should reproduce the issue

Sample data and security rules

  • n/a, I follow the steps in the README and firebase.json is still empty

Debug output

** Errors in the JavaScript console **

  • No errors in the JS console, everything looks like it has worked

** Output from firebase.database().enableLogging(true); **

  • n/a

** Screenshots **
image
image

Expected behavior

  • The firebase.json file should be populated accordingly

Actual behavior

  • We get an empty firebase.json file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions