本文主要是介绍vue项目编译时报 There are multiple modules with names that only differ in casing. This can lead to unexpec,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
今天拉取代码后,npm run dev时发现 会报warning
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
大概意思就是 有多个模块的名称只是大小写不同。
在具有其他大小写语义的文件系统上编译时,这可能会导致意外行为。
查看了下代码,发现是 import 组件时路径的问题,有多个页面, 文件夹名称为AccToolBar,则引入时也要一致,有的地方是大小,有的地方是小写。 引入的路径要跟文件夹名称保持一致就好了。
这篇关于vue项目编译时报 There are multiple modules with names that only differ in casing. This can lead to unexpec的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!