Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/381.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 名称仅在大小写警告上不同的多个模块_Javascript_Reactjs_Webpack_Gatsby - Fatal编程技术网

Javascript 名称仅在大小写警告上不同的多个模块

Javascript 名称仅在大小写警告上不同的多个模块,javascript,reactjs,webpack,gatsby,Javascript,Reactjs,Webpack,Gatsby,我有一个盖茨比的网站,我正在建设。在那个网站上,我收到了一条关于“多个模块的名称只是大小写不同”的警告。问题是,据我所知,我没有多个模块的名称只是大小写不同 以下是完整的警告信息: ./src/ui/Components/button.js There are multiple modules with names that only differ in casing.This can lead to unexpected behavior when compiling on a filesy

我有一个盖茨比的网站,我正在建设。在那个网站上,我收到了一条关于“多个模块的名称只是大小写不同”的警告。问题是,据我所知,我没有多个模块的名称只是大小写不同

以下是完整的警告信息:

./src/ui/Components/button.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:\code\projects\Startup Reporter\styled-1\node_modules\gatsby\dist\utils\babel-loader.js??ref--4-0!C:\code\projects\Startup Reporter\styled-1\node_modules\eslint-loader\index.js??ref--11-0!C:\code\projects\Startup Reporter\styled-1\src\ui\Components\button.js    

Used by 2 module(s), i. e.    
C:\code\projects\Startup Reporter\styled-1\node_modules\gatsby\dist\utils\babel-loader.js??ref--4-0!C:\code\projects\Startup Reporter\styled-1\node_modules\eslint-loader\index.js??ref--11-0!C:\code\projects\Startup Reporter\styled-1\src\ui\Components\index.js* C:\code\projects\Startup Reporter\styled-1\node_modules\gatsby\dist\utils\babel-loader.js??ref--4-0!C:\code\projects\Startup Reporter\styled-1\node_modules\eslint-loader\index.js??ref--11-0!C:\code\projects\Startup Reporter\styled-1\src\ui\components\button.js    

Used by 2 module(s), i. e.    
C:\code\projects\Startup Reporter\styled-1\node_modules\gatsby\dist\utils\babel-loader.js??ref--4-0!C:\code\projects\Startup Reporter\styled-1\node_modules\eslint-loader\index.js??ref--11-0!C:\code\projects\Startup Reporter\styled-1\src\ui\components\index.js./src/ui/Components/dropdown.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:\code\projects\Startup Reporter\styled-1\node_modules\gatsby\dist\utils\babel-loader.js??ref--4-0!C:\code\projects\Startup Reporter\styled-1\node_modules\eslint-loader\index.js??ref--11-0!C:\code\projects\Startup Reporter\styled-1\src\ui\Components\dropdown.js    

Used by 2 module(s), i. e.    
C:\code\projects\Startup Reporter\styled-1\node_modules\gatsby\dist\utils\babel-loader.js??ref--4-0!C:\code\projects\Startup Reporter\styled-1\node_modules\eslint-loader\index.js??ref--11-0!C:\code\projects\Startup Reporter\styled-1\src\ui\Components\index.js* C:\code\projects\Startup Reporter\styled-1\node_modules\gatsby\dist\utils\babel-loader.js??ref--4-0!C:\code\projects\Startup Reporter\styled-1\node_modules\eslint-loader\index.js??ref--11-0!C:\code\projects\Startup Reporter\styled-1\src\ui\components\dropdown.js    

Used by 2 module(s), i. e.    
C:\code\projects\Startup Reporter\styled-1\node_modules\gatsby\dist\utils\babel-loader.js??ref--4-0!C:\code\projects\Startup Reporter\styled-1\node_modules\eslint-loader\index.js??ref--11-0!C:\code\projects\Startup Reporter\styled-1\src\ui\components\index.js./src/ui/Components/index.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:\code\projects\Startup Reporter\styled-1\node_modules\gatsby\dist\utils\babel-loader.js??ref--4-0!C:\code\projects\Startup Reporter\styled-1\node_modules\eslint-loader\index.js??ref--11-0!C:\code\projects\Startup Reporter\styled-1\src\ui\Components\index.js    

Used by 18 module(s), i. e.    
C:\code\projects\Startup Reporter\styled-1\node_modules\gatsby\dist\utils\babel-loader.js??ref--4-0!C:\code\projects\Startup Reporter\styled-1\node_modules\eslint-loader\index.js??ref--11-0!C:\code\projects\Startup Reporter\styled-1\src\layouts\main\components\news-articles.js* C:\code\projects\Startup Reporter\styled-1\node_modules\gatsby\dist\utils\babel-loader.js??ref--4-0!C:\code\projects\Startup Reporter\styled-1\node_modules\eslint-loader\index.js??ref--11-0!C:\code\projects\Startup Reporter\styled-1\src\ui\components\index.js    

Used by 5 module(s), i. e.    
C:\code\projects\Startup Reporter\styled-1\node_modules\gatsby\dist\utils\babel-loader.js??ref--4-0!C:\code\projects\Startup Reporter\styled-1\node_modules\eslint-loader\index.js??ref--11-0!C:\code\projects\Startup Reporter\styled-1\src\forms\contact.js./src/ui/Components/input.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:\code\projects\Startup Reporter\styled-1\node_modules\gatsby\dist\utils\babel-loader.js??ref--4-0!C:\code\projects\Startup Reporter\styled-1\node_modules\eslint-loader\index.js??ref--11-0!C:\code\projects\Startup Reporter\styled-1\src\ui\Components\input.js    

Used by 2 module(s), i. e.    
C:\code\projects\Startup Reporter\styled-1\node_modules\gatsby\dist\utils\babel-loader.js??ref--4-0!C:\code\projects\Startup Reporter\styled-1\node_modules\eslint-loader\index.js??ref--11-0!C:\code\projects\Startup Reporter\styled-1\src\ui\Components\index.js* C:\code\projects\Startup Reporter\styled-1\node_modules\gatsby\dist\utils\babel-loader.js??ref--4-0!C:\code\projects\Startup Reporter\styled-1\node_modules\eslint-loader\index.js??ref--11-0!C:\code\projects\Startup Reporter\styled-1\src\ui\components\input.js    

Used by 2 module(s), i. e.    
C:\code\projects\Startup Reporter\styled-1\node_modules\gatsby\dist\utils\babel-loader.js??ref--4-0!C:\code\projects\Startup Reporter\styled-1\node_modules\eslint-loader\index.js??ref--11-0!C:\code\projects\Startup Reporter\styled-1\src\ui\components\index.js./src/ui/Components/list.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:\code\projects\Startup Reporter\styled-1\node_modules\gatsby\dist\utils\babel-loader.js??ref--4-0!C:\code\projects\Startup Reporter\styled-1\node_modules\eslint-loader\index.js??ref--11-0!C:\code\projects\Startup Reporter\styled-1\src\ui\Components\list.js    

Used by 2 module(s), i. e.    
C:\code\projects\Startup Reporter\styled-1\node_modules\gatsby\dist\utils\babel-loader.js??ref--4-0!C:\code\projects\Startup Reporter\styled-1\node_modules\eslint-loader\index.js??ref--11-0!C:\code\projects\Startup Reporter\styled-1\src\ui\Components\index.js* C:\code\projects\Startup Reporter\styled-1\node_modules\gatsby\dist\utils\babel-loader.js??ref--4-0!C:\code\projects\Startup Reporter\styled-1\node_modules\eslint-loader\index.js??ref--11-0!C:\code\projects\Startup Reporter\styled-1\src\ui\components\list.js    

Used by 2 module(s), i. e.    
C:\code\projects\Startup Reporter\styled-1\node_modules\gatsby\dist\utils\babel-loader.js??ref--4-0!C:\code\projects\Startup Reporter\styled-1\node_modules\eslint-loader\index.js??ref--11-0!C:\code\projects\Startup Reporter\styled-1\src\ui\components\index.js
你知道我为什么会收到这个信息,以及我能做些什么来解决这个问题吗


谢谢。

请检查您的导入声明,您很可能存在某些大小写不匹配的情况。您应该导入“按钮”而不是“按钮”,或者反之亦然?和中也介绍了这一点。我检查了多次,什么也找不到。我们可以看看
按钮的代码以及导入它的组件吗?