Skip to content
Advertisement

“Permission denied to access property “__v_isRef” on cross-origin object” error in NuxtJS

I’m trying to embed a Twitch player on a website using Vue 2 with Nuxt. A minimal component would look like this:

JavaScript

I imported the Twitch js file in the head element in nuxt.config.js.

The player works fine as long as the scope is within the setupPlayer() method. Once I try to assign the tempPlayer object to this.player (to access it from other methods) I get the following error:

Firefox:

JavaScript

Chrome:

JavaScript

So apparently isRef is being called when assigning this.player = tempPlayer and this causes the error.

However, if I use the same component in a standard Vue app (without Nuxt), it works just fine.

How would one fix this issue? I don’t want to have to go back to standard Vue because of something like this.

Thank you.

Advertisement

Answer

My reference Vue app, in which I had no issues, had a different version than the Nuxt app. Downgrading Vue (from 2.7.8 to 2.6.14) solved the problem.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement