Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning multiple modules with names that only differ in casing #112

Open
pacop opened this issue Feb 9, 2022 · 0 comments
Open

Warning multiple modules with names that only differ in casing #112

pacop opened this issue Feb 9, 2022 · 0 comments

Comments

@pacop
Copy link

pacop commented Feb 9, 2022

It seems like a couple of icons are named equal being the unique difference the used casing. Babel is reporting us that:

./node_modules/remixicon-react/BookMarkFillIcon.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:
* /my-project/node_modules/react-scripts/node_modules/babel-loader/lib/index.js??ref--5-oneOf-3!/my-project/node_modules/remixicon-react/BookMarkFillIcon.js
    Used by 1 module(s), i. e.
    /my-project/node_modules/remixicon-react lazy /^\.\/.*Icon$/ groupOptions: {} namespace object
* /my-project/node_modules/react-scripts/node_modules/babel-loader/lib/index.js??ref--5-oneOf-3!/my-project/node_modules/remixicon-react/BookmarkFillIcon.js
    Used by 1 module(s), i. e.
    /my-project/node_modules/remixicon-react lazy /^\.\/.*Icon$/ groupOptions: {} namespace object

./node_modules/remixicon-react/BookMarkLineIcon.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:
* /my-project/node_modules/react-scripts/node_modules/babel-loader/lib/index.js??ref--5-oneOf-3!/my-project/node_modules/remixicon-react/BookMarkLineIcon.js
    Used by 1 module(s), i. e.
    /my-project/node_modules/remixicon-react lazy /^\.\/.*Icon$/ groupOptions: {} namespace object
* /my-project/node_modules/react-scripts/node_modules/babel-loader/lib/index.js??ref--5-oneOf-3!/my-project/node_modules/remixicon-react/BookmarkLineIcon.js
    Used by 1 module(s), i. e.
    /my-project/node_modules/remixicon-react lazy /^\.\/.*Icon$/ groupOptions: {} namespace object

I think we should cosider naming, and maybe start to use pascal-case to avoid this kind of problem with casing and OS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant