vue.js dev 警告:There are multiple modules...

foxCharon
  • 33

今天打开项目的时候突然有个4个警告,不知道是怎么回事,求帮助。

 WARNING  Compiled with 4 warnings                                                                              17:12:38

 warning  in C:/svnMyProject/council-wxhtml-180127-lab/node_modules/_css-loader@0.28.10@css-loader/lib/css-base.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:
* C:\svnMyProject\council-wxhtml-180127-lab\node_modules\_css-loader@0.28.10@css-loader\lib\css-base.js
    Used by 2 module(s), i. e.
    C:\svnMyProject\council-wxhtml-180127-lab\node_modules\_css-loader@0.28.10@css-loader\index.js??ref--5-1!C:\svnMyProject\council-wxhtml-180127-lab\node_modules\_element-ui@1.4.13@element-ui\lib\theme-default\index.css
* c:\svnMyProject\council-wxhtml-180127-lab\node_modules\_css-loader@0.28.10@css-loader\lib\css-base.js
    Used by 38 module(s), i. e.
    c:\svnMyProject\council-wxhtml-180127-lab\node_modules\_css-loader@0.28.10@css-loader\index.js?{"minimize":false,"sourceMap":false}!c:\svnMyProject\council-wxhtml-180127-lab\node_modules\_vue-loader@13.7.1@vue-loader\lib\style-compiler\index.js?{"vue":true,"id":"data-v-04c2046b","scoped":false,"hasInlineConfig":false}!c:\svnMyProject\council-wxhtml-180127-lab\node_modules\_vue-loader@13.7.1@vue-loader\lib\selector.js?type=styles&index=0!c:\svnMyProject\council-wxhtml-180127-lab\src\App.vue

 warning  in C:/svnMyProject/council-wxhtml-180127-lab/node_modules/_css-loader@0.28.10@css-loader/lib/url/escape.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:
* C:\svnMyProject\council-wxhtml-180127-lab\node_modules\_css-loader@0.28.10@css-loader\lib\url\escape.js
    Used by 1 module(s), i. e.
    C:\svnMyProject\council-wxhtml-180127-lab\node_modules\_css-loader@0.28.10@css-loader\index.js??ref--5-1!C:\svnMyProject\council-wxhtml-180127-lab\node_modules\_element-ui@1.4.13@element-ui\lib\theme-default\index.css
* c:\svnMyProject\council-wxhtml-180127-lab\node_modules\_css-loader@0.28.10@css-loader\lib\url\escape.js
    Used by 29 module(s), i. e.
    c:\svnMyProject\council-wxhtml-180127-lab\node_modules\_css-loader@0.28.10@css-loader\index.js?{"minimize":false,"sourceMap":false}!c:\svnMyProject\council-wxhtml-180127-lab\node_modules\_vue-loader@13.7.1@vue-loader\lib\style-compiler\index.js?{"vue":true,"id":"data-v-f1c3269a","scoped":true,"hasInlineConfig":false}!c:\svnMyProject\council-wxhtml-180127-lab\node_modules\_vue-loader@13.7.1@vue-loader\lib\selector.js?type=styles&index=0!c:\svnMyProject\council-wxhtml-180127-lab\src\components\myOrderDetail.vue

 warning  in C:/svnMyProject/council-wxhtml-180127-lab/node_modules/_vue-style-loader@3.1.2@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. Compare these module identifiers:
* C:\svnMyProject\council-wxhtml-180127-lab\node_modules\_vue-style-loader@3.1.2@vue-style-loader\lib\addStylesClient.js
    Used by 2 module(s), i. e.
    C:\svnMyProject\council-wxhtml-180127-lab\node_modules\_vue-style-loader@3.1.2@vue-style-loader\index.js!C:\svnMyProject\council-wxhtml-180127-lab\node_modules\_css-loader@0.28.10@css-loader\index.js??ref--5-1!C:\svnMyProject\council-wxhtml-180127-lab\node_modules\_element-ui@1.4.13@element-ui\lib\theme-default\index.css
* c:\svnMyProject\council-wxhtml-180127-lab\node_modules\_vue-style-loader@3.1.2@vue-style-loader\lib\addStylesClient.js
    Used by 38 module(s), i. e.
    C:\svnMyProject\council-wxhtml-180127-lab\node_modules\_vue-style-loader@3.1.2@vue-style-loader\index.js!C:\svnMyProject\council-wxhtml-180127-lab\node_modules\_css-loader@0.28.10@css-loader\index.js?{"minimize":false,"sourceMap":false}!c:\svnMyProject\council-wxhtml-180127-lab\node_modules\_vue-loader@13.7.1@vue-loader\lib\style-compiler\index.js?{"vue":true,"id":"data-v-34bdb0cc","scoped":true,"hasInlineConfig":false}!c:\svnMyProject\council-wxhtml-180127-lab\node_modules\_vue-loader@13.7.1@vue-loader\lib\selector.js?type=styles&index=0!c:\svnMyProject\council-wxhtml-180127-lab\src\components\ws.vue

 warning  in C:/svnMyProject/council-wxhtml-180127-lab/node_modules/_vue-style-loader@3.1.2@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:
* C:\svnMyProject\council-wxhtml-180127-lab\node_modules\_vue-style-loader@3.1.2@vue-style-loader\lib\listToStyles.js
    Used by 1 module(s), i. e.
    C:\svnMyProject\council-wxhtml-180127-lab\node_modules\_vue-style-loader@3.1.2@vue-style-loader\lib\addStylesClient.js
* c:\svnMyProject\council-wxhtml-180127-lab\node_modules\_vue-style-loader@3.1.2@vue-style-loader\lib\listToStyles.js
    Used by 1 module(s), i. e.
    c:\svnMyProject\council-wxhtml-180127-lab\node_modules\_vue-style-loader@3.1.2@vue-style-loader\lib\addStylesClient.js

> Listening at http://localhost:8080
回复
阅读 2.6k
2 个回答
✓ 已被采纳

以上错误信息,关键点有三句:

1、There are multiple modules with names that only differ in casing.有多个模块同名仅大小写不同

2、This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.这可能导致在一些文件系统中产生不是预期的行为

Use equal casing.使用唯一的写法

linux和mac是严格区分大小写的,而windows不区分。

然后又好了,不知道为什么,可能和某些模块的版本有关吧。

你知道吗?

宣传栏