生成警告:有多个模块的名称仅在大小写上有所不同

时间:2018-10-05 18:48:24

标签: windows bash reactjs webpack

当我尝试在此github-example中构建app1React时,收到以下警告,我没有更改任何配置。

通过谷歌搜索,此警告通常是由于在import语句中使用了错误的大小写引起的,但这不适用于我。

这里的区别似乎是路径中的反斜杠和正斜杠不同。

C:\ Users \ yhe \ Documents \ GitHub ... 与 C:/ Users / yhe / Documents / GitHub ...

我正在使用窗口10,这与操作系统有关吗? 有谁知道这怎么可能发生/解决?

  

(webpack)/buildin/global.js中的警告   有多个模块的名称仅在大小写上有所不同。   在具有其他区分大小写的文件系统上编译时,这可能导致意外行为。   使用相等的套管。比较这些模块标识符:   * C:\ Users \ yhe \ Documents \ GitHub \ single-spa-portal-example \ app1React \ node_modules \ webpack \ buildin \ global.js       由2个模块使用,i。 e。       C:\ Users \ yhe \ Documents \ GitHub \ single-spa-portal-example \ app1React \ node_modules \ punycode \ punycode.js   * C:\ Users \ yhe \ Documents \ Github \ single-spa-portal-example \ app1React \ node_modules \ webpack \ buildin \ global.js       由2个模块使用,i。 e。       C:\ Users \ yhe \ Documents \ Github \ single-spa-portal-example \ app1React \ node_modules \ symbol-observable \ es \ index.js @(webpack)/buildin/global.js    @ C:/Users/yhe/Documents/GitHub/single-spa-portal-example/app1React/node_modules/punycode/punycode.js    @ C:/Users/yhe/Documents/GitHub/single-spa-portal-example/app1React/node_modules/url/url.js    @(webpack)-dev-server / client?http://localhost:9001    @ multi(webpack)-dev-server / client?http://localhost:9001 ./src/singleSpaEntry.js

0 个答案:

没有答案