Uncaught TypeError: $ (...). Stellar is not a function

I am trying to implement a star plugin, and as far as I can see, I have included all the necessary js. However, in the dev tool console, I keep getting "Uncaught TypeError: $ (...). Stellar is not a function."

This is what I have in the headers:

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UFT-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>QE | Welcome</title> <link rel="stylesheet" href="css/foundation.css" /> <link rel="stylesheet" href="css/stuff.css"/> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css" /> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script> <script src="js/jquery.stellar.js"></script> <script src="js/scrip.js"></script> <script src="js/jquery.nicescroll.js"></script> 

And this is the scrip.js file referenced by the error:

 $(document).ready(function() { $(window).stellar(); }); $(document).ready( function() { $("html").niceScroll({ cursorcolor:"rgba(30,30,30,.5)", zindex:999, scrollspeed:100, mousescrollstep:50, cursorborder:"0px solid #fff", }); }); 

Please help me

+7
javascript jquery html
source share
1 answer

I found out that the problem is with js / vendor / jquery.js, which I forgot by placing this at the bottom of the index.html file. When I deleted it, the work of a star. Not sure why this affects stellar.js though.

+2
source share

All Articles