在jquery.dotdotdot上的Require()多个jquery模块警告

时间:2017-03-26 10:31:53

标签: jquery dotdotdot

我有一个项目,我试图通过NPM加载我的JS依赖项而不是使用CDN,一切都很顺利,直到我点击jquery-dotdotdot包显然它取决于jQuery而在我的我正在加载jquery

它有效地再次加载jQuery并忽略我已经在我的项目上设置的那个...我需要它在我的app.js文件中这样 require('jquery-dotdotdot');

这是我得到的警告

WARNING in ./~/jquery/dist/jquery.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/username/Webserver/proj-name/node_modules/jQuery/dist/jquery.js
    Used by 1 module(s), i. e.
    /Users/username/Webserver/proj-name/node_modules/jquery-dotdotdot/src/jquery.dotdotdot.min.umd.js
* /Users/username/Webserver/proj-name/node_modules/jquery/dist/jquery.js
    Used by 4 module(s), i. e.
    /Users/username/Webserver/proj-name/node_modules/buble-loader/index.js!/Users/jonnyserra/Webserver/zona-astro/resources/assets/frontend/js/frontend.js

0 个答案:

没有答案