0

The title says it all.
This is my code with Angular Fire Auth.
Nothing shows up.

export class HomeComponent implements OnInit {

  constructor(public afAuth: AngularFireAuth) {
  }

  ngOnInit(): void {
  }

}

Nothing shows up

And when i remove it

export class HomeComponent implements OnInit {

  constructor() {
  }

  ngOnInit(): void {
  }
}

It works

it works

Denoic
  • 35
  • 1
  • 5

1 Answers1

0

import firebase from "firebase/compat";

It was the error in this import. It should've been.

import firebase from "firebase/compat/app";

Denoic
  • 35
  • 1
  • 5
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Feb 07 '22 at 07:19