vue3.0 ts 项目 提示找不到模块修复
vue3.0 ts 项目 提示找不到模块修复
Cannot find module '@/components/HelloWorld.vue' or its corresponding type declarations.Vetur(2307)
查询了好多资料,解决方法对我均不生效。最后在stack中找到了正确答案。
Volar 取代 Vetur,我们以前的 Vue2官方 VSCode 扩展。如果当前安装了 Vetur,请确保在 Vue3项目中禁用它。
禁用 Vetur 并启用 Volar 应该可以解决这个问题。
当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »