遇到的错误:
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的简写)
![](https://img.haomeiwen.com/i18256099/1fa45c9e91fe4479.png)
网友评论