简体   繁体   English

es-lint 发出警告,提示```存在多个名称仅大小写不同的模块。``` 用于 node_modules

[英]es-lint is throwing a warning for ```There are multiple modules with names that only differ in casing.``` for node_modules

I checked all my import statements and they seem to be fine, the only odd import I have is react-bootstrap and I import it as我检查了我所有的导入语句,它们似乎没问题,我唯一奇怪的导入是 react-bootstrap,我将它导入为

import { Jumbotron, Button } from 'react-bootstrap';

to use the Jumbotron and button, not sure what else to do.使用 Jumbotron 和按钮,不知道还能做什么。


[HMR] Waiting for update signal from WDS...
backend.js:6 ../frontEnd/node_modules/process/browser.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:\Users\User\Desktop\Image_Uploader\frontEnd\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\User\Desktop\Image_Uploader\frontEnd\node_modules\process\browser.js
    Used by 2 module(s), i. e.
    C:\Users\User\Desktop\Image_Uploader\frontEnd\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\User\Desktop\Image_Uploader\frontEnd\node_modules\react-error-overlay\lib\index.js
* C:\Users\User\Desktop\Image_Uploader\frontEnd\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\User\Desktop\Image_Uploader\frontend\node_modules\process\browser.js
    Used by 1 module(s), i. e.
    C:\Users\User\Desktop\Image_Uploader\frontEnd\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\User\Desktop\Image_Uploader\frontend\node_modules\axios\lib\defaults.js
r @ backend.js:6
printWarnings @ webpackHotDevClient.js:137
handleWarnings @ webpackHotDevClient.js:142
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:209
backend.js:6 ../frontEnd/node_modules/webpack/buildin/global.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:\Users\User\Desktop\Image_Uploader\frontEnd\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\User\Desktop\Image_Uploader\frontEnd\node_modules\webpack\buildin\global.js
    Used by 1 module(s), i. e.
    C:\Users\User\Desktop\Image_Uploader\frontEnd\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\User\Desktop\Image_Uploader\frontEnd\node_modules\node-libs-browser\node_modules\punycode\punycode.js
* C:\Users\User\Desktop\Image_Uploader\frontEnd\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\User\Desktop\Image_Uploader\frontend\node_modules\webpack\buildin\global.js
    Used by 2 module(s), i. e.
    C:\Users\User\Desktop\Image_Uploader\frontEnd\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\User\Desktop\Image_Uploader\frontend\node_modules\gud\index.js
r @ backend.js:6
printWarnings @ webpackHotDevClient.js:137
handleWarnings @ webpackHotDevClient.js:142
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:209

my file names我的文件名在此处输入图片说明

The error was, when I cd into the folder i did cd frontend but the folder name is frontEnd , so be careful of your casing :D错误是,当我 cd 进入文件夹时,我做了cd frontend但文件夹名称是frontEnd ,所以要小心你的大小写:D

you can see the error in the output log, but its hard to see it if you are not looking for it.您可以在输出日志中看到错误,但如果您不寻找它,则很难看到它。

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

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