当我运行我的元素时出现这个错误
WARNING in ./src/components/Header/index.scss
There is another module with an equal name when case is ignored.
但是我没有名为 Header 的模块。我有一个名为 header(小写)的模块,但我不确定为什么它仍然认为 Header 模块存在?我尝试删除我的 bundle 无济于事。 我还能做些什么来尝试对这个不存在的模块的所有引用?
最佳答案
你在使用 React.js 吗?我遇到了同样的问题,解决方案是更改
var React = require('React');
进入
var React = require('react');
我不确定这是如何解释错误消息的,如果你四处搜索,你会看到人们在 Window 上出于其他原因收到此错误消息。关于 Node.js 如何处理文件路径的一些事情
关于javascript - 警告 : There is another module with an equal name when case is ignored,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44998840/