NullInjectorError:没有身份验证提供者

问题描述 投票:0回答:1

我对这项服务有疑问。 enter image description here

这是我的应用程序模块。 enter image description here

InicioPage中的注入: enter image description here

我尝试过,在 iniciopage.module 中添加提供程序,但不起作用

node.js angular authentication ionic-framework inject
1个回答
0
投票

我遇到了类似的问题,并通过在 app.module.ts 中添加这两行来解决它

import { FIREBASE_OPTIONS } from "@angular/fire/compat";
@NgModule({
  ...
  providers: [
    { provide: FIREBASE_OPTIONS, useValue: environment.firebase}
  ]
})
© www.soinside.com 2019 - 2024. All rights reserved.