Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

Closed
ksom opened this issue Jan 15, 2022 · 19 comments
Closed

Comments

@ksom
Copy link

ksom commented Jan 15, 2022

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.

@vhmeijering
Copy link

Have the same issue, do you have a solution yet?

@ksom
Copy link
Author

ksom commented Jan 16, 2022

Have the same issue, do you have a solution yet?

Not, I'm trying to install it through firebase cli and add @angular/fire with npm but I don't have a working setup at the moment.

Are you on mac m1 ?

@vhmeijering
Copy link

Have the same issue, do you have a solution yet?

Are you on Mac m1 ?

Yes, M1 Max

@ksom
Copy link
Author

ksom commented Jan 16, 2022

I'm too on mac m1. I don't think it is related but, maybe.

@adzunyan
Copy link

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

$ firebase --version
> 9.23.3

@shinoshu
Copy link

$ 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

@vhmeijering
Copy link

$ 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

Downgrading solved the issue, thank you :)

@brunodiascultural
Copy link

Downgrading solved the issue, thank you!

@jadl7721
Copy link

$ 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

Me funciono

@abhishek1234321
Copy link

Downgrading helped, thanks!

@ribalnasr
Copy link

Same problem here with Mac M1. Is anyone not on M1 having the same problem?

@MrMic
Copy link

MrMic commented Jan 27, 2022

Same issue.
The fix solves it! Thanks!

@yasmineDoghri6
Copy link

Same problem with Mac also. Solved with "npm install -g firebase-tools@9.9.0"

@peavers
Copy link

peavers commented Feb 1, 2022

Same problem, on a Mac but not an M1 chip.

@tama3bb
Copy link

tama3bb commented Feb 2, 2022

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

@mraible
Copy link

mraible commented Feb 9, 2022

I can confirm this still happens today with the latest version of Angular (13.2.2). I'm on an Intel Mac.

Processor: 2.4 GHz 8-Core Intel Core i9

npm i -g firebase-tools@10.0.1 solves the problem.

@mraible
Copy link

mraible commented Feb 9, 2022

FWIW, the latest version of firebase-tools (v10.1.5) doesn't work either.

@MrMarteng
Copy link

I ran into the same issue on a M1 Mac. Manual downgrade is not working for me because of other dependencies.
Any update?

@jamesdaniels
Copy link
Member

Cutting 7.2.1 with the fix now

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

No branches or pull requests