Closed nathanchase closed 1 year ago
You have two options:
deferLoading
in the OptionsRegarding Nuxt support: This is indeed very tricky. There seems to be an issue with the provide/inject API. I'm still working on adding official support via a Nuxt module.
To dynamically load the required scripts, it is indeed recommended to use deferLoading
as @suterma mentioned. Let me know if you need any further support!
Perfect. Thank you @suterma @Techassi.
I'd like to do a dynamic load of vue-youtube, rather than a plugin that adds to my Nuxt 3 entry bundle.
Something like this:
The problem is, by doing it this way, Vue complains with an error of
App already provides property with key "vue-youtube". It will be overwritten with the new value.
Is there some way to dynamically use vue-youtube rather than having to provide it to vueApp?