1
WARNING in ./src/Components/NavBar/MainMenuItemMobile.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:
* /Users/path/to/babel-loader/lib/index.js!/Users/path/to/NavBar/MainMenuItemMobile.js
Used by 1 module(s), i. e.
/Users/path/to/babel-loader/lib/index.js!/Users/path/to/NavBar/ConstructedMainMenuItems.js
* /Users/path/to/babel-loader/lib/index.js!/Users/path/to/Navbar/MainMenuItemMobile.js
Used by 1 module(s), i. e.
/Users/path/to/babel-loader/lib/index.js!/Users/path/to/Navbar/ConstructedMainMenuItems.js
.....
(webpack)-hot-middleware/client.js ./src/index.js
は何を混乱させるのは、参照される2つのファイルが1つのファイルであることです。ディレクトリには、大文字と小文字の区別だけが異なる2つのファイルはありません。
また、ホットリロードでは、これらの警告の影響を受けると、ファイルの変更を取得しないことがよくあります。
この問題の原因は何ですか?
あなたはそうです、それはモジュール名ではなくパス名であり、それが私を投げ捨てました。私は 'NavBar/MainMenuItemMobile.js'を持っていました.Navbarの 'b'は小文字だったはずです。 – adc17