Hls is not defined
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
vue组件中使用audio:{type:'hls'},报错,已经在aplayer之前引入hls.js
报错信息如下:
[Vue warn]: Error in mounted hook: "ReferenceError: Hls is not defined"
found in 组件
ReferenceError: Hls is not defined
at e.value (APlayer.min.js?186d:1)
at e.value (APlayer.min.js?186d:1)
at new e (APlayer.min.js?186d:1)
at VueComponent.mounted (eval at ./node_modules/babel-loader/lib/index.js?{"plugins":[["babel-plugin-transform-modules",{"cube-ui":{"transform":"cube-ui/src/modules/${member}","kebabCase":true}}]]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/audioLive/AudioLive.vue (yctv8.js:37), :159:15)
at invokeWithErrorHandling (vue.esm.js?efeb:1863)
at callHook (vue.esm.js?efeb:4222)
at Object.insert (vue.esm.js?efeb:3148)
at invokeInsertHook (vue.esm.js?efeb:6351)
at VueComponent.patch [as __patch__] (vue.esm.js?efeb:6570)
at VueComponent.Vue._update (vue.esm.js?efeb:3951)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.