vscode中vue项目中修改.vue文件名后报错

发布时间 2023-05-17 09:21:57作者: 崛起崛起

报错误信息:

Already included file name '.../xxx.vue' differs from file name '.../xxx.vue' only in casing.
The file is in the program because:
Imported via '…/xxx.vue' from file '.../xxx.vue'
Root file specified for compilation
Root file specified for compilationVetur(1261)

解决方案:

重新加载 vsocode
1.快捷键:Ctrl + shift + P,打开:“命令面板”,输入:重新加载

2.如果控制台还报错需要重新npm run serve