老师, Home.vue文件是在home文件夹下的,
"Already included file name 'd:/projectpra/jingdong/src/views/home/Home.vue' differs from file name 'd:/projectpra/jingdong/src/views/home/home.vue' only in casing.
The file is in the program because:\n Imported via './views/home/Home.vue' from file 'd:/projectpra/jingdong/src/App.vue'\n
Root file specified for compilation\n
Root file specified for compilation"
好像是因为home和Home名字仅仅是大小写不同,因此vue中会识别有两个相同的文件名导致的,后面我把Home的后缀.vue删除就没有报错了,但是具体的原理是不是这个就不太明白
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星