美文网首页
This dependency was not found:

This dependency was not found:

作者: 草木山川 | 来源:发表于2021-06-15 09:18 被阅读0次

遇到的错误:
This dependency was not found:

  • @/src/components/ProjectInfo in ./src/router/index.js
    To install it, you can run: npm install --save @/src/components/ProjectInfo

原因:在index.js中引入组件的路径不对,引入时看到提示直接回车了,结果前面多了/src,导致路径错误

@/ 表示src目录下
./ 表示当前目录下
(补充:@ 时v-on的简写)
image.png

相关文章

网友评论

      本文标题:This dependency was not found:

      本文链接:https://www.haomeiwen.com/subject/qbaueltx.html