question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

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

github_iconTop GitHub Comments

15reactions
shinoshucommented, Jan 17, 2022
$ 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

2reactions
tama3bbcommented, Feb 2, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Arrow (navigation) dosen't work with ng add @angular/fire in ...
Hey I ran into the exact problem. I dont have the solution to fix the angular cli, however I was able to bypass...
Read more >
Angular and Firebase Crash Course | Create a Note Taking ...
Angular is a TypeScript-based free and open-source web application framework led by the Angular Team at Google and by a community of ...
Read more >
Angular & FireStore Application [1] - Setup & Getting Data
Part 1 of 3: We will setup FireStore from Firebase, create an Angular 4 application and integrate AngularFire2 to work with FireStore and ......
Read more >
Firebase Authentication and Storage with Angular with upload ...
After installation of CLI finishes you can create an Angular application by running following command in a terminal. ng new angular-firebase.
Read more >
Deploy Angular 14 App to Production with Firebase Hosting
Install Angular CLI, Ignore if Angular CLI is already installed. npm install -g @angular/cli.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found