xdlumia / vue3-video-play

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

vue3+TS 引入报错 隐式拥有 "any" 类型 #52

Open zboboan opened 2 years ago

zboboan commented 2 years ago

QQ截图20220505204445 QQ截图20220505204457

按提供的 demo 引入,直接报错,"vue3-video-play": "^1.3.1-beta.6" 是我写得不对?希望能告知原因

alang124 commented 2 years ago

.d.ts declare module 'vue3-video-play'

zboboan commented 2 years ago

.d.ts declare module 'vue3-video-play'

能在明确点嘛?

zhangzhichaolove commented 2 years ago

在src新建文件shims-vue.d.ts,添加如下内容:

declare module 'vue3-video-play';
zhangzhichaolove commented 2 years ago

在src新建文件shims-vue.d.ts,添加如下内容:

declare module 'vue3-video-play';
wordscode commented 6 months ago

在src新建文件shims-vue.d.ts,添加如下内容:

declare module 'vue3-video-play';

文件名随便起?

zhangzhichaolove commented 6 months ago

也许未及时查看消息,看到后会及时回复。 

a0s commented 2 months ago

@wordscode in case of vue3+vite is should be env.d.ts in the root of project

zhangzhichaolove commented 2 months ago

也许未及时查看消息,看到后会及时回复。