Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with Vue 3 #82

Open
ahmedh01 opened this issue Sep 15, 2020 · 2 comments
Open

Not compatible with Vue 3 #82

ahmedh01 opened this issue Sep 15, 2020 · 2 comments

Comments

@ahmedh01
Copy link

Running into the following issue trying to use vue-youtube-embed on Vue 3 RC

Installed vue-youtube via npm, and imported it into my project globally in main.js (Vue 3 docs).

main.js

import { createApp } from 'vue'
import App from './App.vue'
import VueYoutube from 'vue-youtube'

createApp(App)
  .use(VueYoutube)
  .mount('#app')

In the console, I get the following error:

Uncaught TypeError: Cannot set property '$youtube' of undefined

Any ideas? Thanks!

@Techassi
Copy link

Techassi commented Oct 7, 2020

Unfortunately Vue 3 introduced some breaking changes... I fixed them on my own but ultimately decided to write a new improved package. You can check it out here

@wobsoriano
Copy link

Published a lightweight component that works with both Vue 2/3

https://github.com/wobsoriano/vue-lite-youtube-embed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants