Open yangjiandu2 opened 3 years ago
你好,感谢反馈,这个可能是vue的版本过高导致,目前这个插件是基于2.x开发的,如果使用3.0版本的vue,可能会出现报错,在vue正式版本发布之后会做3.x的兼容支持。
@langyuxiansheng vue3正式版本已经发布了,我还是得到这个报错
https://github.com/liho98/vue-aliplayer-v2 我用vite和源代码发布了一个只支持vue3的阿里云播放器,因作者是用webpack为主,我未能创建Pull Request。敬请见谅
npm i vue-aliplayer-v3 --save
or
yarn add vue-aliplayer-v3
import { AliPlayerV3 } from "vue-aliplayer-v3";
components:{ AliPlayerV3 }
vue-aliplayer-v2.umd.min.js?5806:1 Uncaught (in promise) TypeError: Cannot read property '_c' of undefined at Proxy.i (vue-aliplayer-v2.umd.min.js?5806:1) at renderComponentRoot (runtime-core.esm-bundler.js?5c40:710) at componentEffect (runtime-core.esm-bundler.js?5c40:4193) at reactiveEffect (reactivity.esm-bundler.js?a1e9:42) at effect (reactivity.esm-bundler.js?a1e9:17) at setupRenderEffect (runtime-core.esm-bundler.js?5c40:4176) at mountComponent (runtime-core.esm-bundler.js?5c40:4134) at processComponent (runtime-core.esm-bundler.js?5c40:4094) at patch (runtime-core.esm-bundler.js?5c40:3715) at mountChildren (runtime-core.esm-bundler.js?5c40:3897)