vue走过的坑
1.用vscode 编辑器vue-cli引入组件的时候报错
报错提示:
Already included file name ‘d:/newGZ-VUE/my-newgz/src/components/Footer.vue’ differs from file name ‘d:/newGZ-VUE/my-newgz/src/components/footer.vue’ only in casing.
The file is in the program because:
Root file specified for compilation
Imported via “./Footer.vue” from file 'd:/newGZ-
报错截图:
问题分析:自己改变了引入的组件名,可能是很很快的重名了文件夹名
解决办法:关闭vscode重新打开就会解决