I have created child theme for magento 2x and it's parent theme is porto theme. After create child theme everthing is working fine but sometime I have got the following error.
Uncaught TypeError: $.ui is undefined Uncaught TypeError: owl.owlCarousel is not a function Uncaught TypeError: $(...).swMegamenu is not a function Uncaught TypeError: $(...).owlCarousel is not a function Uncaught TypeError: Cannot read property 'timepicker' of undefined
I am not sure why I am getting these error randomly. I have also tried -> Why is js breaking with requirejs in templates on Magento 2 and how to fix? but not working.
Any suggestions would be appreciated