Skip to content

Instantly share code, notes, and snippets.

@zcaceres
Last active May 24, 2017 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zcaceres/835f0c0b710b0e1260904a9cc25b2e43 to your computer and use it in GitHub Desktop.
Save zcaceres/835f0c0b710b0e1260904a9cc25b2e43 to your computer and use it in GitHub Desktop.

Recently while working with Webpack, I saw this error.

WARNING in ./app/components/students.js
There is another module with an equal name when case is ignored.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Rename module if multiple modules are expected or use equal casing if one module is expected.

WARNING in ./app/components/Students.js
There is another module with an equal name when case is ignored.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Rename module if multiple modules are expected or use equal casing if one module is expected.

It seems self-explanatory, but you'll still see errors like this even if all of your files may be named exactly right.

This error isn't caused by how your files are named, but by import statements. You're likely using import on a file in the lower case while the file is actually named uppercase (or vice-versa).

The simple fix is to check all of your file imports.

Hope this saves you some troubleshooting time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment