jQuery and jQuery-ui are two different things
You need to pull in jQuery-ui in order to use it
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
in bootstrap.js window.$ = window.jQuery = require('./vendor/jquery/jquery');
after I require jquery-ui in a vue component
this work fine
mounted () {
$(function() {
$("#sidebar").draggable();
});
}
but this has a error vendor.js:31706 TypeError: $(...).draggable is not a function
(function($) {
$("#sidebar").draggable();
})(window.jQuery);
Is it a bug?
Please or to participate in this conversation.