• I noticed the Image carousel throwing errors, stating jquery.slick to be undefined.

    Uncaught TypeError: $carousel.slick is not a function
        at module.exports (frontend.js?ver=1.4.3:446)
        at _runHook (frontend.js?ver=1.4.3:1328)
        at Object.doAction (frontend.js?ver=1.4.3:1361)
        at ElementsHandler.runReadyTrigger (frontend.js?ver=1.4.3:93)
        at HTMLDivElement.<anonymous> (frontend.js?ver=1.4.3:47)
        at Function.each (jquery.js?ver=1.12.4:2)
        at jQuery.fn.init.each (jquery.js?ver=1.12.4:2)
        at runElementsHandlers (frontend.js?ver=1.4.3:46)
        at ElementsHandler.initHandlers (frontend.js?ver=1.4.3:62)
        at init (frontend.js?ver=1.4.3:53)

    I can easily solve it by adding it as a requirement for elementor-frontend in plugins/elementor/includes/frontend.php line #134

    wp_register_script(
    	'elementor-frontend',
    	ELEMENTOR_ASSETS_URL . 'js/frontend' . $suffix . '.js',
    	[
    		'elementor-waypoints','jquery-slick'
    	],
    	ELEMENTOR_VERSION,
    	true
    );

    But is this a known error or am I missing something?

    Thanx!

    P.S. Using a custom-built theme based on Roots Sage

    • This topic was modified 7 years, 10 months ago by artyfarty.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Yakir Sitbon

    (@kingyes)

    Please try to change to default theme and deactivate all your plugins. If the problem is resolved, try change to your theme and see if it’s back.. I just want to know where is really the problem…

    Having a similar error now using a barebone Sage Beta 3 starters theme and Elementor. I get this error:

    Uncaught TypeError: c.slick is not a function
        at b.exports (frontend.min.js:2)
        at d (frontend.min.js:2)
        at Object.f [as doAction] (frontend.min.js:2)
        at d.runReadyTrigger (frontend.min.js:2)
        at HTMLDivElement.<anonymous> (frontend.min.js:2)
        at Function.each (jquery.js:2)
        at a.fn.init.each (jquery.js:2)
        at g (frontend.min.js:2)
        at d.initHandlers (frontend.min.js:2)
        at frontend.min.js:2

    @artyfarty ‘s solution worked. But does sound like this could be a bug.

    • This reply was modified 7 years, 8 months ago by Rhand.
    • This reply was modified 7 years, 8 months ago by Rhand.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Slick js not included’ is closed to new replies.