This relative module was not found: * ./components/goods/Cate.vue in ./src/router.js
其他
2020-01-29 11:06:03
阅读次数: 0
在Vscode中运行项目文件(npm run serve)时出现错误:Failed to compile with 1 errors 10:14:35 This relative module was not found:
- ./components/goods/Cate.vue in ./src/router.js
文件名错误或者文件位置移动可能导致路由文件中路径寻找不到,把文件名修改过来就OK了!
PS:Vue中can’t find module ’包名‘ 错误一般都是缺少引用挂载或者没有npm install 下载安装所需的支持包文件,module was not found:'文件路径’一般都是路径问题导致找不到哦!
发布了6 篇原创文章 ·
获赞 0 ·
访问量 1206
转载自blog.csdn.net/qq_33846125/article/details/103612119