Topic: jQuery.easing[jQuery.easing.def] is not a function

Cris Anthony Barbosa free asked 6 years ago

How can i solve this one, i tried adding jquery.easing.js above mdb.min.js but still it has this error Uncaught (in promise) TypeError: jQuery.easing[jQuery.easing.def] is not a function at Object.swing (mdb.min.js:1) at (hound-nothome.js:4) at u (hound-nothome.js:2) at (hound-nothome.js:4) at J (hound-nothome.js:2) at HTMLDivElement.o (hound-nothome.js:4) at Function.dequeue (hound-nothome.js:4) at HTMLDivElement.<anonymous> (hound-nothome.js:4) at Function.each (hound-nothome.js:3) at ve.fn.init.each (hound-nothome.js:3)

Adrian Sawicki free answered 6 years ago

Hi Anthony,
   <script type="text/javascript" src="js/mdb.min.js"></script>

    <script type="text/javascript" src="js/example.js"></script>
You don't have to place jquery-easing because it's already inside of mdb.js . In example.js:
	duration: 5000, //time
	easing: method, //method which u can pick from jquery-easing.js by writing jQuery.method ( for example jQuery.easeInQuad )
	complete: callback // you can put here even a empty function ( function() {} ) 

AliJared free answered 6 years ago

I'm having the same issue. Generically the issue seems to be relate to not have jQuery UI, but I have placed jQuery UI underneath jQuery and have still got the same issue. Really irritating issue as it's crashing the MDB JS.

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.


Specification of the issue

  • User: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No