Closed bennymi closed 2 years ago
I'm facing the same issue, I unfortunately have not enough knowledge on nuxt :/
My working solution:
plyr.client.ts
import VuePlyr from '@skjnldsv/vue-plyr/dist/index.js'
const VuePlayer = VuePlyr
export default defineNuxtPlugin(nuxtApp => {
nuxtApp.vueApp.use(VuePlayer, { plyr: {} })
})
Hi, thanks for your work on this package! I would love to use it for a project but am currently still getting an error when trying to implement it with Nuxt3. I created a question for it on stackoverflow. Do you perhaps have an idea on how to resolve this or what I might be doing wrong?
I have followed the instructions for Nuxt (Vue 2.x) at the bottom of the read-me page to use the component in Nuxt, by creating a file in the plugins directory and wrapping the component in a
<ClientOnly>
tag, but I am still getting an error./plugins/vue-plyr.ts
nuxt.config.ts
app.vue
Error