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

请问, 在vue3+ts中如何引入工具函数 #366

Closed
fqingyang opened this issue May 20, 2024 · 1 comment
Closed

请问, 在vue3+ts中如何引入工具函数 #366

fqingyang opened this issue May 20, 2024 · 1 comment

Comments

@fqingyang
Copy link

我按照下面这样引入后功能正常使用,就是报错,请问应该如何解决呢?
import { throttle, debounce, timeFormat, timeFrom, test } from 'uview-plus/index'

报错误:
无法找到模块“uview-plus/index”的声明文件。“uview-plus@3.2.17/node_modules/uview-plus/index.js”隐式拥有 "any" 类型。
如果“uview-plus”包实际公开了此模块,请尝试添加包含 declare module‘uview-plus/index'; 的新声明(.d.ts)文件ts(7016)

@wmt-git
Copy link

wmt-git commented Sep 29, 2024

我这边也是报同样问题

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