引入组件vue可以正常解析,vscode 报错
引入组件vue可以正常解析,vscode 报错
vue可以正常解析,vscode 报错
differs from already included file name 'e:/test/src/components/Dropdown.vue' only in casing.
The file is in the program because:
Imported via './Dropdown.vue' from file 'e:/test/src/components/GlobalHeader.vue'
Root file specified for compilation
Imported via "./DropDown.vue" from file 'e:/test/src/components/DropDown.vue.template'Vetur(1149
第二个报错
Already included file name 'e:/test/src/components/Dropdown.vue' differs from file name 'e:/test/src/components/DropDown.vue' only in casing.
The file is in the program because:
Imported via './Dropdown.vue' from file 'e:/test/src/components/GlobalHeader.vue'
Root file specified for compilation
Root file specified for compilationVetur(1261)
在项目根目录下找到tsconfig.json 添加
"forceConsistentCasingInFileNames": false
如下,保存,重启也不行
能编译,看着红线不爽,最终在项目根目录下注释
"src/**/*.vue",
更多推荐
所有评论(0)