score:0

Accepted answer

you have to create an instance from firebase class then you can access to its methods.

const firebase = new firebase();
firebase.isinitialized()

unless you define isinitialised as static.

static isinitialized() {
  return new promise(resolve => {
    this.auth.onauthstatechanged(resolve)
  })
}

then you can call it like this.

firebase.isinitialized()

update

your problem is a typo, your calling it with isinitialised which should be isinitialized


Related Query

More Query from same tag