L
L
Leha Lepeha2018-11-10 00:07:15
JavaScript
Leha Lepeha, 2018-11-10 00:07:15

jQuery is not included in index.js, what should I do?

Throws an error: "Uncaught ReferenceError: $ is not defined
at Object../src/js/menu.js (menu.js:66).
In index.js

import jQuery from 'jquery';
import './scss/main.scss';
import './js/menu.js';
import './js/slider.js';

And it still does not connect, I installed it via npm, what should I do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Sklyarov, 2018-11-10
@0example

import $ from 'jquery';

S
Stockholm Syndrome, 2018-11-10
@StockholmSyndrome

import * as $ from 'jquery';
and so?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question