简体   繁体   English

编译时带有警告。 反应

[英]Compiled with warnings. React

Hello, pleases help, i use react-create-app and i have warnings:你好,请帮忙,我使用 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 

what I can do with it?我能用它做什么?

In the warning it says: There are multiple modules with names that only differ in casin, and is true.在警告中它说:有多个模块的名称仅在 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

At the end of this routes I see "ProShop" and "proshop", solve that and the warning will disappear.在这条路线的末尾,我看到“ProShop”和“proshop”,解决这个问题,警告就会消失。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM