JS news ticker is not working on home page but working on other pages. How to solve this?

the console is firing this error:

TypeError: $ is not a function

Could be a few things:

WordPress loads jQuery in no-conflict mode so you may need to use jQuery instead of $ when making your selections

jQuery('your-selector)

Be sure that jQuery has loaded before you set your interval. Based on what I can see you may be trying to access if before it’s loaded?

Hope it helps