I've been looking for ways to make an enqueue of the right library of jquery ui but i dont see there is one for that, any ideas of how to use this without getting error?
jQuery('#menu_desktop').toggle("slide", {direction: "left"});
https://developer.wordpress.org/reference/functions/wp_enqueue_script/
My jquery ui enqueue
wp_enqueue_script('jquery-ui', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js', '1', true);
wp_enqueue_script('menu_script', get_stylesheet_directory_uri() . '/js/menu.js', array('jquery', 'jquery-ui'), '1', true);
My error
jquery.min.js?ver=3.4.1:2 Uncaught TypeError: k.easing[this.easing] is not a function
at init.run (jquery.min.js?ver=3.4.1:2)
at u (jquery.min.js?ver=3.4.1:2)
at Function.k.fx.tick (jquery.min.js?ver=3.4.1:2)
at lt (jquery.min.js?ver=3.4.1:2)
Libraries are being imported