Ionic 空注入器错误:没有身份验证的提供程序

wmomyfyw  于 2023-09-28  发布在  Ionic
关注(0)|答案(1)|浏览(173)

我对这项服务有问题。enter image description here
这是我的app.module. enter image description here
InicioPage中的注入:enter image description here
我试过,在iniciopage.module中添加提供程序,但不起作用

fgw7neuy

fgw7neuy1#

我也遇到过类似的问题,通过在app.module.ts中添加这两行代码解决了这个问题

import { FIREBASE_OPTIONS } from "@angular/fire/compat";
@NgModule({
  ...
  providers: [
    { provide: FIREBASE_OPTIONS, useValue: environment.firebase}
  ]
})

相关问题