wobsoriano / vue-lite-youtube-embed

A private by default, faster and cleaner YouTube embed component for Vue applications.
https://vue-lite-youtube-embed-demo.vercel.app
MIT License
61 stars 7 forks source link

Vue 2 haven't Fragment #16

Closed vuthanhbayit closed 1 year ago

vuthanhbayit commented 1 year ago

When I use this lib with Nuxt 2, I get 1 error image and I check in code, I see:

if (isVue2)
      return () => h('Fragment', {}, vnodeList())

Tks for check

wobsoriano commented 1 year ago

It's written in README that if you use Vue 2, you'll have to install vue-frag.

import Vue from 'vue'
import { Fragment } from 'vue-frag'
import App from './App.vue'

Vue.component('Fragment', Fragment)

new Vue({
  render: h => h(App),
}).$mount('#app')