Answer the question
In order to leave comments, you need to log in
Can't globally declare jquery in laravel mix. Why?
I have simplified the code as much as possible.
1) As such, jquery is globally reachable. This is the original state.
app.js
import $ from "jquery";
window.$ = window.jQuery = $;
import { LessMore } from "./modules/less-more";
LessMore.init();
import $ from "jquery";
window.$ = window.jQuery = $;
import { LessMore } from "./modules/less-more";
import "chosen-js";
LessMore.init();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question