title: jQuery Owl Carousel: Cannot read property ‘clone’ of undefined
body: <p>I am not sure if this is an error but I am getting this in my console. It drives me crazy. I am running a WordPress site. My error is below.</p>
  <pre><code>Uncaught TypeError: Cannot read properties of undefined (reading 'clone')
      at e.run (owl.carousel.min.js?ver=1.3.2:1)
      at Object.i [as run] (jquery.min.js:2)
      at e.update (owl.carousel.min.js?ver=1.3.2:1)
      at e.refresh (owl.carousel.min.js?ver=1.3.2:1)
      at e.initialize (owl.carousel.min.js?ver=1.3.2:1)
      at new e (owl.carousel.min.js?ver=1.3.2:1)
      at HTMLDivElement.&lt;anonymous&gt; (owl.carousel.min.js?ver=1.3.2:1)
  
      at Function.each (jquery.min.js:2)
      at s.fn.init.each (jquery.min.js:2)
      at s.fn.init.a.fn.owlCarousel (owl.carousel.min.js?ver=1.3.2:1)
  </code></pre>
  <p>As a fix, I found that I must config loop: false for the slider that has only one item but I am not sure how I do that in my WordPress site.</p>
  <p>This is the code that shows the error in owlCarousel.min.js</p>
  <pre><code>a.fn.owlCarousel = function(b) {
      return this.each(function() {
          a(this).data(&quot;owlCarousel&quot;) || a(this).data(&quot;owlCarousel&quot;, new e(this,b))
      })
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/GtC37.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GtC37.png" alt="This is the place that shows the error when I view the file path it navigates me to here. This is a WordPress website. " /></a></p>
  <pre><code>  var W = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
      S.Deferred.exceptionHook = function(e, t) {
          C.console &amp;&amp; C.console.warn &amp;&amp; e &amp;&amp; W.test(e.name) &amp;&amp; C.console.warn(&quot;jQuery.Deferred exception: &quot; + e.message, e.stack, t)
      }
      ,
      S.readyException = function(e) {
          C.setTimeout(function() {
              throw e
          })
      }
      ;
  </code></pre>
  <p>This says Jquery deferred exception</p>