The file is in the program because:
Imported via './components/Count.vue' from file 'c:/Users/10638/Desktop/vue_test/src/App.vue'
Root file specified for compilation

今天在App.vue组件中导入Count定义的Count组件时发生的错误

提示:'c:/Users/10638/Desktop/vue_test/src/components/Count.vue' differs from file name

原因:文件名删除后重新创建或者发生过修改

解决办法:重新启动Vscode即可

Logo

前往低代码交流专区

更多推荐