安装vue第三方插件报错Could not find a declaration file for module ‘vue-photo-preview‘.
问题:在我进行安装vue的第三方插件的时候遇到了这样的一个问题,报了这样的错误
Could not find a declaration file for module ‘vue-photo-preview’.Try npm install @types/vue-photo-preview
if it exists or add a new declaration (.d.ts) file containing declare module 'vue-photo-preview';
解决方法1: npm install @types/vue-photo-preview
(如若遇到安装报错,请使用第二种解决方法)
解决方法2:找到shims-vue-d.ts文件
在这个文件中添加上这行代码就可以了
重启项目后,发现原先报错飘红的代码就好了,可以继续快乐的继续敲代码了
安装vue第三方插件报错Could not find a declaration file for module ‘vue-photo-preview‘.相关推荐
- ts:报错Could not find a declaration file for module xxx
问题 我们在 typescript 的项目中安装一些包的话,可能会报错 Could not find a declaration file for module 'xxx' ,这是因为这个包可能不是. ...
- vue3+ts 改中文报错 Could not find a declaration file for module ‘element-plus/dist/locale/zh-cn.mjs‘.
在更改ElementPlus的分页器组件时 使用国际化 会报错 在env.d.ts文件中添加如下代码即可解决 declare module 'element-plus/dist/locale/zh-c ...
- RabbitMq安装Web界面插件报错
RabbitMq安装Web界面插件报错 最近在安装rabbitmq-plugins的时候报了以下的错误,一直不知道什么原因,上网百度了很多,自己尝试了很多,总结下来就是这几步,希望可以给大家帮助: 错 ...
- MySQL5.7安装半同步插件报错,错误码1126
MySQL5.7安装半同步插件报错,错误码1126 mysql> INSTALL PLUGIN rpl_semi_sync_master SONAME 'semisync_master.so'; ...
- Windows安装MySQL 5.7报错:Can‘t find error-message file ‘XXX\share\errmsg.sys‘
问题: 安装mysql输入:mysqld --initialize --user=mysql --console 报错:Can't find error-message file 'XXX\share ...
- vue3+ts import引用报错Could not find a declaration file for module ‘three-obj-mtl-loader‘.
vue3+ts import引用报错记录及解决方式 报错描述 问题分析 解决方式一 解决方式二 报错描述 TS7016: Could not find a declaration file for m ...
- react-native 框架升级 安卓第三方插件报错 Android resource linking failed
亲自经历react-native从0.55升级到0.58的过程,有点坎坷,ios出现的问题还算不多,但是android这里,随着gradle和buildTool的使用升级,导致第三方插件出现各种问题, ...
- mendeley 安装Microsoft Word 插件 报错及解决
报错信息 Unable to install the Microsoft Word Plugin start up directory does not exist 解决方案 参考的博客中说是电脑里面 ...
- 《Python笔记》安装(pip)第三方包报错
目录 Python版本 报错信息 pip 安装numpy报错 pip 安装 scipy报错 pip 安装 pywin32 报错 解决办法 网络方法1 网络方法2 请测解决方法 Python版本 $ p ...
最新文章
- BCompare注册文件+密钥被撤销解决方案
- 阿里云ET工业大脑发布AI视觉产品“见远”:电池片、车辆、路面都能被“诊断”...
- mysql添加另一个表的某条数据库,在MySQL中,如何将一个表的内容复制到同一个数据库中的另一个表?...
- reverse() 几种操作
- Qt/Qte/Qtopia三者的区别
- WinAPI: SetTextColor - 设置设备环境的文本颜色
- java面试知识记录
- Web存储—本地存储Cookie
- Xstream 学习地址
- 没有Path的Binding
- 扫雷游戏网页版_佛性扫雷 炸不炸随缘
- Matlab遗传算法TSP求解
- k8s学习笔记2-搭建harbor私有仓库
- Win10系统重装过程(一键装机)
- 刘墉写给女儿的 忠告
- android开发技巧精髓一
- C语言中EOF的应用
- 1253: 统计字符出现的频度
- 解决桌面IE图标无法删除方法
- 考研英语二阅读理解态度题解题技巧