import { AngularFirestoreModule, AngularFirestore} from '@angular/fire/firestore';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
FormsModule,
HttpClientModule,
AngularFireModule.initializeApp(environment.firebase),
AngularFirestoreModule
],
providers: [AngularFirestore],
bootstrap: [AppComponent]
})
export class AppModule { }Enter code here...
import { Component, OnInit } from '@angular/core';
import { EveSystem, Adm, EveHome } from './models/model';
import {AngularFireStorage} from '@angular/fire/storage';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
constructor(private db: AngularFireStorage ) {
// this.db = this.adb.storage.app.firestore();
}
ERROR Error: StaticInjectorError(AppModule)[AppComponent -> AngularFireStorage]: StaticInjectorError(Platform: core)[AppComponent -> AngularFireStorage]: NullInjectorError: No provider for AngularFireStorage! at NullInjector.push../node_modules/@angular/core/fesm5/core.js.NullInjector.get (http://localhost:4200/vendor.js:34167:19) at resolveToken (http://localhost:4200/vendor.js:34405:24) at tryResolveToken (http://localhost:4200/vendor.js:34349:16) at StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector.get (http://localhost:4200/vendor.js:34246:20) at resolveToken (http://localhost:4200/vendor.js:34405:24) at tryResolveToken (http://localhost:4200/vendor.js:34349:16) at StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector.get (http://localhost:4200/vendor.js:34246:20) at resolveNgModuleDep (http://localhost:4200/vendor.js:41474:29) at NgModuleRef_.push../node_modules/@angular/core/fesm5/core.js.NgModuleRef_.get (http://localhost:4200/vendor.js:42162:16) at resolveDep (http://localhost:4200/vendor.js:42527:45)
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/7974a66a-2e6d-4263-bd5f-d6e6f09c4c31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.