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

Could not find a declaration file for module 'vue-at'. #122

Open
Luokun2016 opened this issue May 27, 2020 · 2 comments
Open

Could not find a declaration file for module 'vue-at'. #122

Luokun2016 opened this issue May 27, 2020 · 2 comments

Comments

@Luokun2016
Copy link

在vue-admin-template中import vue-at出错

2020-05-27 10-54-10屏幕截图

Could not find a declaration file for module 'vue-at'. '/home/user/Repos/platform-frontend/node_modules/vue-at/dist/vue-at.js' implicitly has an 'any' type.
Try npm install @types/vue-at if it exists or add a new declaration (.d.ts) file containing declare module 'vue-at';ts(7016)

@Luokun2016
Copy link
Author

2020-05-27 10-54-10屏幕截图

@fritx
Copy link
Owner

fritx commented May 27, 2020

@Luokun2016 vue-at 还没提供 *.d.ts declaration
你项目的环境可能是ts,目前的workaround 估计只能 const At = require('vue-at') 跳过
参考 microsoft/TypeScript#3019 (comment)

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

No branches or pull requests

2 participants