typescript - VS Code在Vue+TypeScript项目中找不到模块,WebStorm没问题

标签 typescript vue.js visual-studio-code

VS Code找不到下面的模块,但是可以在我的项目中使用:

VSCode screenshot

但是在WebStorm中可以找到:

WebStorm screenshot

这是我的 tsconfig:

tsconfig

最佳答案

是vetur的bug,会校验.vue中的脚本,如果脚本的lang是ts会报错

关于typescript - VS Code在Vue+TypeScript项目中找不到模块,WebStorm没问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53630255/

相关文章:

typescript - 如何通过 typescript 在Vue2中使用带有组合api的vue类组件

javascript - Vue.js - 无法使用 vue-resource 加载 json 数据

javascript - 将原始 html 从 Vue 返回到 Laravel Blade

vue.js - vuejs 历史模式与 github/gitlab 页面

linux - 如何限制 tabnine 的内存使用量?

typescript - 根据条件添加类

具有命名属性和任意命名的不同类型索引属性的 Typescript 接口(interface)

reactjs - 使用 div React useRef 钩子(Hook), typescript ?

visual-studio-code - 使用 xunit 在 webapi 应用程序上运行 dotnet 测试

typescript - 如何在不编译为 JS 的情况下使用 vscode-tslint 中用 TypeScript 编写的自定义 tslint 规则?