Answer the question
In order to leave comments, you need to log in
How to fix "Uncaught ReferenceError: jQuery is not defined" error when using admin-lte3?
I use webpack to build the front, at the entry point (index.js) I wrote the following:
import $ from 'jquery';
import popper from 'popper.js';
import bootstrap from 'bootstrap';
import 'admin-lte/dist/js/adminlte.min.js'
Answer the question
In order to leave comments, you need to log in
const webpack = require('webpack');
plugins: [
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery'
})
],
import {$,jQuery} from 'jquery';
window.$ = $;
window.jQuery = jQuery;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question