NullInjectorError: No provider for AngularFirestore

前端 未结 11 884
北恋
北恋 2020-12-02 10:34

I\'m learning Angular looking for help in fixing the error: I\'m following this link : https://github.com/angular/angularfire2/blob/master/docs/install-and-setup.md to creat

11条回答
  •  感情败类
    2020-12-02 11:34

    Weird thing for me was that I had the provider:[], but the HTML tag that uses the provider was what was causing the error. I'm referring to the red box below:

    It turns out I had two classes in different components with the same "employee-list.component.ts" filename and so the project compiled fine, but the references were all messed up.

提交回复
热议问题