A
A
Alex_872021-01-29 18:28:36
webpack
Alex_87, 2021-01-29 18:28:36

How to properly install third party libraries in webpack?

Hello! I ran into a problem installing seemingly simple libraries (jquery, bootstrap, fancybox, swiper) in webpack but could not install jquery (I just didn’t get to the rest). I can't figure out what I'm doing wrong! I try to follow the instructions in the documentation, but it doesn't help! The error says that $ is not defined!

In index.js I write as follows: and so I wrote:
import $ from 'jquery';
import 'jquery';

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