xdlumia / vue3-video-play

适用于 Vue3 的 hls.js 播放器组件,配置丰富,界面还算好看
https://codelife.cc/vue3-video-play/
602 stars 99 forks source link

使用报错 #19

Open wangsitingting opened 2 years ago

wangsitingting commented 2 years ago

image 按照demo写的,报错信息如下: image

xdlumia commented 2 years ago

image 按照demo写的,报错信息如下: image

是不是vue3版本过低?需要3.2.2以上才可以

html580 commented 2 years ago

"vue": "3.2.19", "vite": "^2.5.10", 报同样的错呢 runtime-core.esm-bundler.js:7303 Uncaught TypeError: Cannot read properties of null (reading 'setupContext') at getContext (runtime-core.esm-bundler.js:7303) at useAttrs (runtime-core.esm-bundler.js:7296) at setup (index.es.js:1) at callWithErrorHandling (runtime-core.esm-bundler.js:6668) at setupStatefulComponent (runtime-core.esm-bundler.js:6277) at setupComponent (runtime-core.esm-bundler.js:6233) at mountComponent (runtime-core.esm-bundler.js:4086) at processComponent (runtime-core.esm-bundler.js:4061) at patch (runtime-core.esm-bundler.js:3656) at mountChildren (runtime-core.esm-bundler.js:3852)

LuckyChild commented 2 years ago

报同样的错,有解决方案吗

warmWarmHeart commented 2 years ago

3.2.20也会报上面错

WeChatb6e1a7060b1619ce934705c76dcdc16e

WeChatb17863f700![1637563645335](https://user-images.githubusercontent.com/28856942/142816480-23bd76a4-f65e-40b5-963c-9342e8f93e92.jpg)
22f333f4608057fe0c49f0

cl-cc commented 2 years ago

3.2.4还是报错同样的问题 setupContext 怎么解决

liuhongchao2012 commented 2 years ago

我也报这个错, 暂时是这么解决的 import { videoPlay } from 'vue3-video-play/lib/index 或者 把node_modules/vue3-video-play/lib 复制到自己工程里去引用

zwh0809 commented 2 years ago

vue-router.esm-bundler.js:3295 SyntaxError: The requested module '/cms-web/node_modules/hls.js/dist/hls.js?v=8a3ba691' does not provide an export named 'default'

PhyQxx commented 2 years ago

我也报这个错, 暂时是这么解决的 import { videoPlay } from 'vue3-video-play/lib/index 或者 把node_modules/vue3-video-play/lib 复制到自己工程里去引用

import { videoPlay } from 'vue3-video-play/lib/index,用这种方式,居然报错找不到less依赖,还是组件里的 image

FanLu1994 commented 2 years ago

同样的报错。用其他的了

Bing-Xiong commented 2 years ago

我使用yarn的时候可以正常使用 使用vite的时候就会报这个错误