I’ve installed node 18.10.0 and I’m trying to create a new Angular 15 project that uses Firebase 9 (hosting, firestore database and authentication) and after the commands shown below the node_modules doesn’t have the @angular/fire directory, so the following in app.module.ts import doesn’t work
import { AngulareFireModule } from '@angular/fire';
Import { AngularFirestoreModule } from '@angular/fire/firestore';
AngularFireModule.initializeApp(environment.firebase),
AngularFirestoreModule
I really want to stay with Firebase 9, but happy to downgrade Angular. Any ideas on what to do?
nvm install 10.10.0
nvm use 18.10.0
npm install -g @angular/[email protected]
ng new myapp
cd myapp
npm install bootstrap
npm install [email protected]
npm install -g firebase-tools
firebase init
2
Answers
Solved with
Ng add @angular/fire
I’m digging around to rectify issues I have writing to the Firestore emulators but shouldn’t the imports be the following for Firebase 9?
or a variation of this, however you want to handle it