NullInjectorError: No provider for Auth


I have a problema with this service.
enter image description here

This is my app.module.
enter image description here

The injection in InicioPage:
enter image description here

I tried , add in providers in iniciopage.module, but not work


I had a similar problem and solved it by adding these two lines in app.module.ts

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

Answered By – Eloi

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published