vue项目警告There are multiple modules with names that only differ in casing

import App from ‘./App.vue’

执行npm run dev后出现了警告提示:
warning in ./src/App.vue

There are multiple modules with names that only differ in casing.    //有多个模块同名仅大小写不同
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.     //这可能导致在一些文件系统中产生不是预期的行为
Use equal casing. Compare these module identifiers:      //使用唯一的写法,对比下面这些模块的标识符:
* F:\路径。。。。。。

问题在于大小写没有区分:

import App from './app.vue'

在linux下是严格区分大小写,而windows不区分。改过来就没警告了

猜你喜欢

转载自blog.csdn.net/jokren/article/details/86079479