npm run serve后出现错误:

> vegaru@0.1.0 serve   
> vue-cli-service serve

 INFO  Starting development server...


 ERROR  Failed to compile with 1 error                                    16:27:28

 error  in ./src/router/index.js

Module not found: Error: [CaseSensitivePathsPlugin] `C:\Users\77518\Desktop\新建文
件夹\vegaru\src\views\userpage\about\About.vue` does not match the corresponding path on disk `about.vue`.

ERROR in ./src/router/index.js 17:0-49
Module not found: Error: [CaseSensitivePathsPlugin] `C:\Users\77518\Desktop\新建文
件夹\vegaru\src\views\userpage\about\About.vue` does not match the corresponding path on disk `about.vue`.
 @ ./src/main.js 3:0-30 21:2-8

纯属拼写错误,比如说我的就是大小写的错误。找到路径里面的文件后,更改过来,保存后终端会自己继续运行,然后就出来啦!

Logo

前往低代码交流专区

更多推荐