xdlumia / vue3-video-play

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

vue3.0 + vite使用打包报错了,请问有什么办法解决嘛 #29

Open zhongqingbin opened 2 years ago

zhongqingbin commented 2 years ago

warning package.json: No license field $ vue-tsc --noEmit && vite build src/views/watch/index.vue(154,27): error TS7016: Could not find a declaration file for module 'vue3-video-play'. 'd:/Project/git/help-center-dlz/node_modules/vue3-video-play/dist/index.umd.js' implicitly has an 'any' type. Try npm i --save-dev @types/vue3-video-play if it exists or add a new declaration (.d.ts) file containing declare module 'vue3-video-play'; error Command failed with exit code 2. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

xdlumia commented 2 years ago

这个还没有加入ts的类型文件呢