Webpack 有多个模块的名称只是大小写不同 [英] Webpack There are multiple modules with names that only differ in casing

查看:30
本文介绍了Webpack 有多个模块的名称只是大小写不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的事情:

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 中的绝对路径

Eventually, I found the answer. It was a Windows issue. It was necessary to change the absolute path in C:\Data...\r1HeadLearning.js from

c:\Data\...\letsTest.jsx

C:\Data\...\letsTest.jsx

这篇关于Webpack 有多个模块的名称只是大小写不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆