vue run dev 启动时报错 There are multiple modules with names that only differ in casing. This can lead

warning in ./~/vue-style-loader/lib/listToStyles.js

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:

  • E:WebProjectUFAPPDYJJnode_modulesvue-style-loaderliblistToStyles.js

    Used by 1 module(s), i. e.
    E:\WebProject\UFAPP\DYJJ\node_modules\vue-style-loader\lib\addStylesClient.js
  • E:WebProjectufappDYJJnode_modulesvue-style-loaderliblistToStyles.js

    Used by 1 module(s), i. e.
    E:\WebProject\ufapp\DYJJ\node_modules\vue-style-loader\lib\addStylesClient.js

报错原因:

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. 
使用唯一的写法

猜测是因为你的文件名和引用不一致,举个例,文件名是App.js,但是你引用的时候是写的app.js


猜你喜欢

转载自blog.csdn.net/zyx1303031629/article/details/80883839