cinephile icon indicating copy to clipboard operation
cinephile copied to clipboard

Uncaught Reference Error

Open WeiJian123-tech opened this issue 1 year ago • 2 comments

I found an error by right clicking inspect element while looking at index.html page. The error is as follows: Uncaught ReferenceError: ScrollTrigger is not defined at script1.js:442:1.

image

I viewed script1.js file on line 442 and found that this piece of code was causing the console to throw an Uncaught Reference Error:

ScrollTrigger.batch(".movie", {
  batchMax: 3, 
  onEnter: (batch) => {
    gsap.to(batch, {autoAlpha: 1, stagger: 0.15, overwrite: true})
  }, 
});

Your website cinephile works fine even with this Uncaught Reference Error. You can plug this line of code <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/ScrollTrigger.min.js"></script> in the html files to fix the issue however it comes with its own set of errors.

image

I can add the fix for you as a pull request for Hacktoberfest if you'd like.

WeiJian123-tech avatar Oct 08 '23 17:10 WeiJian123-tech