今天在公司里写代码的时候发现一个.vue文件名称写错了,改完名之后一直报错,但是不影响正常使用,错误信息如下
Already included file name '组件的路径' differs from file name '组件的路径' only in casing.
The file is in the program because:
Imported via "组件的路径" from file '组件的路径'
Root file specified for compilation
Root file specified for compilationVetur(1261)
经过排查之后发现这个问题是因为改了组件名称的原因
解决方案:解决方案只要在vscode中按下ctrl+shift+p,然后搜索重新加载即可