javascript - webpack error when installing jQuery
PHP中文网
PHP中文网 2017-06-14 10:54:12
0
1
663

npm install jQuery --save-dev
Install jQuery, and the error after webpack packaging is as follows

But it does not affect the use, the page is not The error is reported and the display effect is correct. What is the error reported below and how to solve it?

PHP中文网
PHP中文网

认证0级讲师

reply all (1)
为情所困

What version of jQuery do you have installed? The main is not set in the package.json of the early version of jQuery. Just set it manually

resolve: { alias: { jquery: "jquery/src/jquery" } }
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!