我有这样的事情:
WARNING in C:/Data/.../letsTest.jsx
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:\Data\...\node_modules\babel-loader\lib\index.js?presets[]=es2015&presets[]=react&presets[]=stage-0&presets[]=stage-2!C:\Data\...\letsTest.jsx
Used by 4 module(s), i. e.
multi C:/Data/Doc/13/13080801/LetsTest/letsTest.jsx
* C:\Data\...\node_modules\babel-loader\lib\index.js?presets[]=es2015&presets[]=react&presets[]=stage-0&presets[]=stage-2!c:\Data\...\letsTest.jsx
Used by 1 module(s), i. e.
C:\Data\...\node_modules\babel-loader\lib\index.js?presets[]=es2015&presets[]=react&presets[]=stage-0&presets[]=stage-2!C:\Data\...\r1HeadLearning.js
有什么问题?
最终,我找到了答案。这是一个Windows问题。有必要在C:\ Data ... \ r1HeadLearning.js中更改绝对路径
c:\Data\...\letsTest.jsx
至
C:\Data\...\letsTest.jsx
我刚刚在我的系统上修改了相同的警告,我在Windows 10上编写了一个Create-React-App。因为Windows文件系统不区分大小写,所以这并不妨碍我继续工作,但它很丑陋。看看我的终端输出。在调查中,没有一个可用的答案对我有帮助。但是在几天的反复思考中,我想到了可能的原因。在最近的过去,我曾几次使用npm来安装模块而不是我常用的纱线。由于警告都指向节点模块,我认为这可能是一个错误。所以这就是我所做的:
也许这会对你有所帮助。
删除node_modules文件夹并运行npm install
解决了我的问题