Closed nsssayom closed 2 years ago
@nsssayom thank you for the code contribution. Unfortunately, it is not back compatible with vue v2. There is "demo" folder and when I run with the changes you provide AvMedia component is not working.
Yes, this is a Vue 3.0 only solution unfortunately. There can be another library named vue3-audio-visual for Vue v3.0 with this fix.
yeah, sorry, I can not merge it as it will impact people who is already using it. I keep it open though for future reference.
Also, you can publish your own vue3-audio-visual and I will put a reference in README so that anyone can use it before better solution is found. What do you think?
Yeah, it would be very convenient. I will publish a new plugin, and let you know here.
Maybe we should use vue-demi for this? We should make it a universal plugin, instead of forking IMHO.
Maybe we should use vue-demi for this? We should make it a universal plugin, instead of forking IMHO.
@alectrocute I did not know about this pluging. it looks like a good solution. Probably will not take too many changes to implement
@nsssayom I have published v2.3.0 which supports both vue2 and vue3. Please, try it let me know if you have any problems. Thank you
@staskobzar Maybe we should advertise that it's vue 2 and vue 3 compatible on the README.md?
@alectrocute good point, thank you
This fix solves
Uncaught (in promise) TypeError: h is not a function
error and makes the plugin usable in Vue 3 projects.