seeratawan01 / vue-lazytube

Embed a YouTube and Vimeo player easily and lazy load the video to save resources and reduces initial load size.
https://codesandbox.io/s/vue-lazytube-hj03y
MIT License
37 stars 15 forks source link

Not working with Nuxt3 #29

Open BSBjorn opened 1 year ago

BSBjorn commented 1 year ago

When trying to use this library in my Nuxt 3 app, I can't get it working. The video (Vimeo) is not loaded and gives me error: Uncaught (in promise) TypeError: can't access property "_c", t3._self is undefined

To Reproduce Create a vue component in Nuxt 3.

  <div>
    <LazyVimeo :src="`https://player.vimeo.com/video/${id}`" />
  </div>
</template>

<script setup>
import { LazyVimeo } from "vue-lazytube";

const props = defineProps({
  id: {
    type: String,
    required: true,
  },
});
</script>

Expected behavior Is that the video loads.

tsavo-at-pieces commented 1 year ago

Was just looking at this - any thoughts/updates here? @BSBjorn did you end up with a solution? Wondering how much time I should spend on this!

Lmk! 🤝

mednisrihards commented 1 year ago

Same here on Vue3

robmontesinos commented 1 year ago

Any idea of when this issue will be addressed?