错误是无法找到模块'@ angular / fire'.ts(2307)

时间:2019-11-25 18:49:27

标签: angular firebase

如何解决找不到@ angular / fire 导入时 它说找不到模块@ angular / fire

如何解决找不到@ angular / fire 它说找不到模块@ angular / fire

npm i firebase @angular/fire --save

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { AngularFireModule } from '@angular/fire';
import { AngularFirestoreModule } from '@angular/fire/firestore';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    AngularFireModule,
    AngularFirestoreModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

0 个答案:

没有答案