title: Getting Uncaught TypeError: undefined is not a function in nivo slider.js
body: <p>I am trying to put nivo-slider on my drupal home page. Although all images are showing but they are not sliding and when I check consol, I see an error in nivo-slider.js file i.e.</p>
  
  <pre><code>"Uncaught TypeError: undefined is not a function"
  </code></pre>
  
  <p>My nivo-slider.js code is-</p>
  
  <pre><code>(function ($) {
    Drupal.behaviors.nivoSlider = {
      attach: function (context, settings) {
        // Initialize the slider
        $('#slider').nivoSlider({ *//here I am getting error mentioned above*
          'effect': Drupal.settings.nivo_slider.effect, // Specify sets like: 'fold,fade,sliceDown'
          'slices': Drupal.settings.nivo_slider.slices, // For slice animations
          'boxCols': Drupal.settings.nivo_slider.boxCols, // For box animations
          'boxRows': Drupal.settings.nivo_slider.boxRows, // For box animations
          'animSpeed': Drupal.settings.nivo_slider.animSpeed, // Slide transition speed
          'pauseTime': Drupal.settings.nivo_slider.pauseTime, // How long each slide will show
          'startSlide': Drupal.settings.nivo_slider.startSlide, // Set starting Slide (0 index)
          'directionNav': Drupal.settings.nivo_slider.directionNav, // Next &amp; Prev navigation
          'directionNavHide': Drupal.settings.nivo_slider.directionNavHide, // Only show on hover
          'controlNav': Drupal.settings.nivo_slider.controlNav, // 1,2,3... navigation
          'controlNavThumbs': Drupal.settings.nivo_slider.controlNavThumbs, // Use thumbnails for Control Nav
          'pauseOnHover': Drupal.settings.nivo_slider.pauseOnHover, // Stop animation while hovering
          'manualAdvance': Drupal.settings.nivo_slider.manualAdvance, // Force manual transitions
          'prevText': Drupal.settings.nivo_slider.prevText, // Prev directionNav text
          'nextText': Drupal.settings.nivo_slider.nextText, // Next directionNav text
          'randomStart': Drupal.settings.nivo_slider.randomStart, // Start on a random slide
          'beforeChange': Drupal.settings.nivo_slider.beforeChange, // Triggers before a slide transition
          'afterChange': Drupal.settings.nivo_slider.afterChange, // Triggers after a slide transition
          'slideshowEnd': Drupal.settings.nivo_slider.slideshowEnd, // Triggers after all slides have been shown
          'lastSlide': Drupal.settings.nivo_slider.lastSlide, // Triggers when last slide is shown
          'afterLoad': Drupal.settings.nivo_slider.afterLoad // Triggers when slider has loaded
        });
      }
    };
  }(jQuery));
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/qpI0U.png" alt="here is the error in my consol"></p>
  
  <p>Help me to sought out this error..thanks!!</p>