I'm trying to use waypoints and console gives me this error:
Uncaught TypeError: jquery$1(...).waypoint is not a function
I was trying everything and nothing works...
I'm including waypoints after jquery:
import $ from 'jquery'
import 'bootstrap'
import 'slick-carousel-latest'
import 'magnific-popup'
import './components/components'
import 'waypoints/lib/jquery.waypoints.min'
here is my function
$('.section--process').waypoint(function () {
if (stopAtSectionProcess === false)
stopAtSectionProcess = false
$('body').css('overflow', 'hidden')
$(window).scrollTop($('.page2').offset().top)
})