-
Notifications
You must be signed in to change notification settings - Fork 56
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 RC #61
Comments
same here |
I think migrating this to Vue3 is pretty easy:
|
I will migrate to version 3 soon. |
Any ETA for migrating to vue 3 ? |
Also looking forward to getting Vue 3 support. Did anyone found a workaround in the meantime? |
I just injected the api js as a workaround. setup(props, context) {
var tag = document.createElement('script')
tag.src = 'http://www.youtube.com/iframe_api'
const firstScriptTag = document.getElementsByTagName('script')[0]
firstScriptTag.parentNode?.insertBefore(tag, firstScriptTag)
} Then you can assign player= new YT.player and use its api. |
I created a PR with the changes necessary to get it working with Vue3: I did not have time to fully dive into to the rollup setup, so ignore the changes i made in the PR to the /dist folder, i made those only to get the component working for my own project. |
Published a lightweight component that works with both Vue 2/3 |
Running into the following issue trying to use
vue-youtube
on Vue 3 RCInstalled
vue-youtube
vianpm
, and imported it into my project globally inmain.js
following the directions given by the Vue 3 docs.main.js
In the console, I get the following error:
Might be something minor?
The text was updated successfully, but these errors were encountered: