vue-meituan icon indicating copy to clipboard operation
vue-meituan copied to clipboard

前端报错@/views/index/index in ./src/router/index.js 说什么找不到.

Open zhongshigui opened this issue 6 years ago • 3 comments

后端可以正常启动成功连接数据库,前端 npm install 没有问题 就是 npm run serve 报错了* @/views/index/index in ./src/router/index.js

  • @/views/index/nearby_shops in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??r?ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/category/category.vue?vue&type=script&lang=js& 各位GitHub大佬拜托

zhongshigui avatar Nov 24 '19 11:11 zhongshigui

我的也报错了,楼主怎么解决

gitluck1314 avatar Dec 18 '19 09:12 gitluck1314

我的也报错了,楼主怎么解决

这个问题,就是博主源码中的src/views/index文件和文件夹命名为Index了,改一下,就完美解决了

zxk0nly1 avatar Mar 04 '20 17:03 zxk0nly1

请问有解决吗 我文件夹名和文件名不一致 也找不到 Could not resolve '../views/home/index.vue' from src/router/index.ts

qing-nv avatar Aug 22 '22 02:08 qing-nv