Skip to content

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

@pacop

Description

@pacop

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions