No provider for AngularFireDatabase, AngularFireAuth

后端 未结 6 2070
不思量自难忘°
不思量自难忘° 2020-11-29 05:12

Apologies as I can\'t think of a better way of including all the information... When I run this, I get an error saying the following. I\'ve followed the Ionic Docs to the T,

6条回答
  •  感情败类
    2020-11-29 05:33

    The updated version to use firebase would be in app.module.ts

    import { AngularFireModule } from '@angular/fire';
    import { AngularFirestoreModule } from '@angular/fire/firestore';
    import { AngularFireAuthModule } from '@angular/fire/auth';
    import { AngularFireDatabaseModule } from '@angular/fire/database';
    
    
    
    imports: [
    AngularFireModule.initializeApp(environment.firebase),
    AngularFirestoreModule,
    AngularFireAuthModule,
    AngularFireDatabaseModule,
    ....
    ]
    

提交回复
热议问题