Property 'auth' Does Not Exist On Type 'typeof Import("/home/kartik/desktop/ecommerce/ecommerce/node_modules/firebase/index")'. Ts(2339)
I am a beginner at FireBase and I am trying to implement Google login with FireBase using angular. I am getting the above error at auth. I am hereby attaching login.component.ts an
Solution 1:
Your dependencies are the old ones. I suggest you to update them and use the new syntax:
import { AngularFireAuth } from'@angular/fire/auth';
import { AngularFirestore } from'@angular/fire/firestore';
import { AngularFireDatabaseModule } from'@angular/fire/database';
import * as firebase from'firebase/app';
with firebase@7.24.0
There complete tutorial about firebase authentication which I find really useful; here's the link
The old imports are
import { AngularFireAuthModule } from'angularfire2/auth';
Post a Comment for "Property 'auth' Does Not Exist On Type 'typeof Import("/home/kartik/desktop/ecommerce/ecommerce/node_modules/firebase/index")'. Ts(2339)"