Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Angular/Fire into Angular 17

I have an Angular 17 app and need to add Angular/Fire, the Angular Firebase version to it.

When i try to install it with npm install @angular/fire I am faced with a dependency error:

npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^16.0.0" from @angular/[email protected]

as the new version of Angular Fire hasn't been released yet.

I stumbled across this thread.

I am wondering how to install Angular Fire into 17? Should I use the next version or use ---force? And where is it initialised now when we no longer have app.module.ts? I used to do it in app.module.ts but I assume it would be done in app.config.ts or in main?

like image 295
Robgit28 Avatar asked Nov 01 '25 14:11

Robgit28


1 Answers

This is becasue angular fire was not released for Angular 17.

Try: npm i @angular/[email protected]

like image 188
Cobra Avatar answered Nov 03 '25 05:11

Cobra



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!