angularfire: Terminal freeze when running `ng add @angular/fire` on selecting Firebase app step

Version info

Angular:13.1.1

Firebase:9.6.3

AngularFire:7.2.0

Node: 14 & 16 & 17

How to reproduce these conditions

Steps to set up and reproduce

Running ng add @angular/fire

Debug output

Node.js version v17.3.0 detected.
Odd numbered Node.js versions will not enter LTS status and should not be used for production. For more information, please see https://nodejs.org/en/about/releases/.
Skipping installation: Package already installed
UPDATE package.json (3190 bytes)
✔ Packages installed successfully.
? What features would you like to setup? ng deploy -- hosting
Using firebase-tools version 10.1.0
? Which Firebase account would you like to use? vxxxxxxx@gmail.com
✔ Preparing the list of your Firebase projects
? Please select a project: (Use arrow keys or type to search)
  [CREATE NEW PROJECT] 
❯ MyProjectName

** Screenshots ** output ng add @angular:fire

Expected behavior

Continue the installation process.

Actual behavior

  • Selection of features works
  • Selection of Firebase account works
  • Selection of project freeze.

I cannot move between options with arrows nor press enter nor ctrl+c to end process. The only thing I can do is exiting the terminal window. I tried with Iterm, and native Mac os Terminal. I tried with fish, zsh and bash shells. Always same behavior.

[EDIT]

Notice that with firebase init this step works perfectly: I can use the arrow keys to navigate and select an entry.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 5
  • Comments: 19 (1 by maintainers)

Commits related to this issue

Most upvoted comments

$ npm uninstall -g firebase-tools
$ npm install -g firebase-tools@9.9.0

https://github.com/angular/angularfire/blob/master/src/schematics/firebaseTools.ts#L45

firebase-tools@10.1.0 freezes. firebase-tools@10.0.1 works.

Cutting 7.2.1 with the fix now

I was facing that problem too, but when I downgraded firebase-tools from v10 to v9, it was resolved.

$ firebase --version
> 9.23.3