Nov 28, 2022
0
Level 1
Jquery in Laravel MIX : Uncaught TypeError: jQuery.easing[this.easing] is not a function
I'm trying to get Jquery + JqueryUI to work properly with Laravel MIX. And it won't.. keeps getting:
Uncaught TypeError: jQuery.easing[this.easing] is not a function
at init.run (jquery.js?8262:7179:1)
at tick (jquery.js?8262:7563:1)
at jQuery.fx.tick (jquery.js?8262:7906:1)
at schedule (jquery.js?8262:7282:1)
I already tried to add the "jquery.easing" library to the part.
My webpack looks like this:
mix.js('resources/js/app.js', 'public/js')
.extract(['jquery', 'jquery-easing', 'bootstrap'])
.sass('resources/sass/app.scss', 'public/css')
.sourceMaps();
And my app.js looks like:
require('./bootstrap');
import $ from 'jquery';
window.$ = window.jQuery = $;
import 'jquery-ui/ui/widgets/datepicker.js';
import 'jquery-ui/ui/widgets/autocomplete.js';
import 'jquery.easing';
require('./bootnavbar');
Please or to participate in this conversation.