11
NullInjectorError:AngularFirestore没有提供程序
我正在学习Angular,以寻求帮助来修复错误:我正在关注以下链接:https : //github.com/angular/angularfire2/blob/master/docs/install-and-setup.md 创建一个小角度带有angular2和angularfirestore2的应用 但是当我点击服务时,我在浏览器控制台中收到以下错误。 StaticInjectorError[AngularFirestore]: StaticInjectorError[AngularFirestore]: NullInjectorError: No provider for AngularFirestore! at _NullInjector.get (core.js:923) at resolveToken (core.js:1211) at tryResolveToken (core.js:1153) at StaticInjector.get (core.js:1024) at resolveToken (core.js:1211) at tryResolveToken (core.js:1153) at StaticInjector.get (core.js:1024) at resolveNgModuleDep (core.js:10585) at NgModuleRef_.get (core.js:11806) at resolveDep (core.js:12302) 我尝试使用Google搜索,但是没有找到确切的解决方案:(, 这是我遵循的内容:1)安装的节点版本8.9.1 2)npm install -g @ angular / …