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

vite打包报错 #820

Open
stgzhangzheyi opened this issue May 16, 2024 · 14 comments
Open

vite打包报错 #820

stgzhangzheyi opened this issue May 16, 2024 · 14 comments

Comments

@stgzhangzheyi
Copy link

error: Cannot find module 'vue-cropper' or its corresponding type declarations.

import { VueCropper } from "vue-cropper"

请问这是什么原因引起的?有什么应对或者解决的方式?

@xyxiao001
Copy link
Owner

是安装的 1.x版本嘛

@stgzhangzheyi
Copy link
Author

是的

@stgzhangzheyi
Copy link
Author

ae9c8ab857a7e101fefa2ab2a11c0df

@xyxiao001
Copy link
Owner

报错截图看看

@stgzhangzheyi
Copy link
Author

e34b4433e8c9b2425044b0ca7a68ae5

@xyxiao001
Copy link
Owner

这个应该any 类型的问题,可以先把vite里面any类型限制关一下

@stgzhangzheyi
Copy link
Author

好的,我先去尝试一下,谢谢您

@stgzhangzheyi
Copy link
Author

6702b54941e62fd8f8bc6904017a73f
这个的确可以解决报错。但会降低ts的检查能力。后续还有更好的办法吗

@xyxiao001
Copy link
Owner

可以的,这个是组件库问题,之前一直没修复,下个版本会修复下

@stgzhangzheyi
Copy link
Author

辛苦您

@xyxiao001
Copy link
Owner

1.13版本已经修复了

@stgzhangzheyi
Copy link
Author

请问下载指令是什么

@JamesBang007
Copy link

1.13版本已经修复了

1.1.3 还是保这个错误

@Yuimng
Copy link

Yuimng commented Nov 2, 2024

1.13版本已经修复了

1.1.4还是报这个错
Snipaste_2024-11-02_20-12-44

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

4 participants