S
S
Sergey delphinpro2021-02-27 12:32:38
webpack
Sergey delphinpro, 2021-02-27 12:32:38

How to get rid of "There are multiple modules with names that only differ in casing" warning on windows?

Used by jquery-ui. Custom build, datepicker only.
Accordingly, the bundle is assembled on their website, placed in the project folder.
And there are dependencies.

"dependencies": {
        "jquery": "^3.5.1",
        "jquery-ui": "file:./resources/3rd-party/jquery-ui"
    }


It is assembled by the laravel-mix package.

After assembly I get a warning

There are multiple modules with names that only differ in casing.
Use equal casing. Compare these module identifiers:
* D:\dev\...\node_modules\jquery\dist\jquery.js
    Used by 192 module(s), i. e.
    D:\dev\...\node_modules\babel-loader\lib\index.js??ref--4-0!D:\dev\...\resources\js\main.js
* d:\dev\...\node_modules\jquery\dist\jquery.js
    Used by 1 module(s), i. e.
    D:\dev\...\node_modules\babel-loader\lib\index.js??ref--4-0!d:\dev\...\resources\3rd-party\jquery-ui\
jquery-ui.min.js


As you can see, the difference in the module name is in the case of the drive letter. It is clear that the problem is manifested only on Windows.
Packages imported from node_modules use an upper case letter, jquery-ui package from a local project folder uses a lower case letter.

It is interesting that initially this problem did not exist, the project was going perfectly a few days ago.
I don’t even know where to dig, what happened and who is to blame.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question