Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhongshigui opened this issue Nov 24, 2019 · 3 comments

Comments

@zhongshigui
Copy link

后端可以正常启动成功连接数据库,前端 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大佬拜托
@gitluck1314
Copy link

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

@zxk0nly1
Copy link

zxk0nly1 commented Mar 4, 2020

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

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

@liujing0921
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants