Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法全局使用 #3

Open
q88qaz opened this issue Oct 8, 2023 · 1 comment
Open

无法全局使用 #3

q88qaz opened this issue Oct 8, 2023 · 1 comment

Comments

@q88qaz
Copy link

q88qaz commented Oct 8, 2023

Please update to v0.35.0 or higher for TypeScript version: 4.9.5
src/main.ts:5:25 - error TS7016: Could not find a declaration file for module 'viplayer'. 'E:/Work_Web/bjllx.qiansheng.tech/node_modules/viplayer/dist/index.umd.min.js' implicitly has an 'any' type.
Try npm i --save-dev @types/viplayer if it exists or add a new declaration (.d.ts) file containing declare module 'viplayer';

5 import videoPlayer from "viplayer"; // 引入组件

@Shucei
Copy link
Owner

Shucei commented Oct 8, 2023

没有复现,可以尝试在你的项目中创建一个新的 TypeScript 文件,例如 viplayer.d.ts,并添加以下内容:declare module 'viplayer'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants