带有警告信息。反应

时间:2020-10-25 09:07:52

标签: javascript node.js reactjs webpack

你好,请帮忙,我使用react-create-app,并且有警告:

C:/Users/Vitaliy/Documents/GitHub/ProShop/frontend/node_modules/process/browser.js
[1] There are multiple modules with names that only differ in casing.
[1] This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
[1] Use equal casing. Compare these module identifiers:
[1] * C:\Users\Vitaliy\Documents\GitHub\ProShop\frontend\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\Vitaliy\Documents\GitHub\ProShop\frontend\node_modules\process\browser.js
[1]     Used by 2 module(s), i. e.
[1]     C:\Users\Vitaliy\Documents\GitHub\ProShop\frontend\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\Vitaliy\Documents\GitHub\ProShop\frontend\node_modules\react-error-overlay\lib\index.js  
[1] * C:\Users\Vitaliy\Documents\GitHub\ProShop\frontend\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\Vitaliy\Documents\GitHub\proshop\frontend\node_modules\process\browser.js
[1]     Used by 1 module(s), i. e.
[1]     C:\Users\Vitaliy\Documents\GitHub\ProShop\frontend\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\Vitaliy\Documents\GitHub\proshop\frontend\node_modules\axios\lib\defaults.js
[1]
[1] (webpack)/buildin/global.js
[1] There are multiple modules with names that only differ in casing.
[1] This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
[1] Use equal casing. Compare these module identifiers:
[1] * C:\Users\Vitaliy\Documents\GitHub\ProShop\frontend\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\Vitaliy\Documents\GitHub\ProShop\frontend\node_modules\webpack\buildin\global.js
[1]     Used by 1 module(s), i. e.
[1]     C:\Users\Vitaliy\Documents\GitHub\ProShop\frontend\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\Vitaliy\Documents\GitHub\ProShop\frontend\node_modules\node-libs-browser\node_modules\punycode\punycode.js
[1] * C:\Users\Vitaliy\Documents\GitHub\ProShop\frontend\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\Vitaliy\Documents\GitHub\proshop\frontend\node_modules\webpack\buildin\global.js
[1]     Used by 2 module(s), i. e.
[1]     C:\Users\Vitaliy\Documents\GitHub\ProShop\frontend\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\Vitaliy\Documents\GitHub\proshop\frontend\node_modules\symbol-observable\es\index.js 

我可以做什么?

1 个答案:

答案 0 :(得分:0)

警告中说: 有多个模块的名称仅在casin上不同,而且是真的。

C:\Users\Vitaliy\Documents\GitHub\ProShop\frontend\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\Vitaliy\Documents\GitHub\**ProShop**\frontend\node_modules\process\browser.js

C:\Users\Vitaliy\Documents\GitHub\ProShop\frontend\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\Vitaliy\Documents\GitHub\**proshop**\frontend\node_modules\process\browser.js

在这条路线的尽头,我看到“ ProShop”和“ proshop”,请解决此问题,警告将消失。