2 years ago

JQuery is not initialized when using Laravel Mix 0.9.*

Posted 2 years ago by Ruffles


I just upgraded Laravel Mix to version 0.9 and I noticed that my template stopped working because JQuery is not being initialized before Bootstrap.

The error I am getting is the following:

Uncaught Error: Bootstrap's JavaScript requires jQuery

So I searched google and saw that the default autoloading for JQuery was removed. I tried to add it back with

   jquery: ['$', 'window.jQuery']

but that didn't help me, I still have the same problem.

How can I include JQuery to the webpack.config.js file manually?

Please sign in or create an account to participate in this conversation.