小编Pan*_*ode的帖子

找不到模块“vue”。您的意思是将“moduleResolution”选项设置为“node”,还是将别名添加到“paths”选项?

我试图
import { ref } from 'vue'; import { onClickOutside } from '@vueuse/core'; import { useRoute } from 'vue-router'; 从 vue 包导入任何属性,然后收到此错误。

Cannot find module 'vue-router'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?对于其他对象我也收到此错误Property 'xxxxxx' does not exist on type '{}'.

我添加了"moduleResolution":"node"编译器选项,然后我也遇到了同样的错误。

如何解决这个错误?

vuejs3

5
推荐指数
2
解决办法
4454
查看次数

标签 统计

vuejs3 ×1