firebase - angularfire2 找不到模块'@angular/fire'
问题描述
- app.components.ts:
从“@angular/fire”导入 { AngularFireModule };从 'angularire2/firestore' 导入 { AngularFirestore };
@NgModule
({ 声明:[
AppComponent,
SignupComponent,
LandingComponent, ProfileComponent
, NavbarComponent
, FooterComponent
,
LoginComponent,
BlogComponent,
ForgetpwdComponent,
BlogDashboartComponent,
BlogDetailsComponent,
BlogListComponent ],
进口: [ BrowserModule, NgbModule.forRoot(), FormsModule, RouterModule, AppRoutingModule, HomeModule , ReactiveFormsModule, HttpModule],
提供者: [AngularFirestore],
引导程序: [AppComponent] })
不起作用的导入位于服务中:
从'./posts'导入{帖子};
从'@angular/core'导入{可注射};
从 'angularfire2/firestore' 导入 { AngularFirestore, AngularFirestoreCollection };
导入'rxjs/add/operator/map';
我只包括了可能与错误有关的依赖项,但如果我遗漏了什么,请告诉我。
解决方案
推荐阅读
- chez-scheme - chez 方案中的数学手册
- sql - Azure SQL 数据库备份菜单不可用
- c# - Linq 按特定枚举值排序
- amazon-web-services - 如何解决 botocore.exceptions.NoCredentialsError:无法找到凭据
- c# - 什么是有效的 C#/EDM 标识符?
- python - Django:为什么 Django 不翻译单词
- r - 如何使用 purrr::map 系列将函数直接应用于数据框列表,而不是创建新对象
- javascript - 动态 Nuxt 页面选择
- r - 适合列表的 gofstat 问题
- c# - 使用 EMGU CV 进行模板匹配