Permission denied to access property "__v_isRef" on cross-origin object

UI Components for Vue
Post Reply
dbuckman
Posts: 1
Joined: 11 Jul 2022, 19:37

20 Jul 2022, 23:09

Hi,
First post. Hopefully someone can find that I am doing something wrong. I am using firebase authentication and firestore.
When I sign in the first time using signInWithPopup everythings works as expected.
When I sign out, then try and sign back in using signInWithPopup I get an error

Code: Select all

DOMException: Permission denied to access property "__v_isRef" on cross-origin object subscribe.ts:239:20
    sendOne subscribe.ts:239
    (Async: promise callback)
If I choose to use signInWithEmailAndPassword everything works. I can sign in, sign out, and then sign back in again.

Here is the code. In this version I have a bunch of then's strung together to see if it is a timing issue. I didn't help

Code: Select all

googleSignIn() {
  this.$toast.add({ severity: 'info', summary: 'Loading', detail: 'Loading. Please wait' });
  const auth = getAuth();
            
  signInWithPopup(auth, this.store.provider)
    .then((result) => {
      const user = result.user;
      this.store.user = user;
      this.store.getUserMeta()
      .then(() => {
        this.store.getVehicles()
          .then(() => {
            this.toast.removeAllGroups();
            this.router.push("/");
            console.log("route pushed");
          })
      })
    })
}
"primevue": "^3.15.0"
"vue": "^3.2.25",
"vue-router": "^4.1.2"
"vite": "^3.0.2"

I have the same issue running local or if I build and push to firebase hosting. Any ideas?

tugce.kucukoglu
Posts: 400
Joined: 23 Oct 2020, 09:28

26 Jul 2022, 10:22

Hi!

Please try to remove package-lock.json and node_modules files and install them again. They could be out of date.

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests