参考链接 Could not find a declaration file for module 'vue-xxx'. - 七七。 - 博客园
引用VUE-GOOD-TABLE install报错 Could not find a declaration file for module 'vue-xxx'
首先清除npm缓存 npm cache clean -f
重新 npm intall但依然运行失败 命令窗口提示运行 npm i --save-dev @types/vue-good-table
但仍旧报错,如下图所示。
参考链接,需要在文件 shims-vue.d.ts中加入一句话 declare module 'vue-good-table'