Library doesn't seem to work without Jquery
See original GitHub issueI tried loading the lib via:
<script src="https://unpkg.com/rivescript@latest/dist/rivescript.min.js"></script>
And I got the error:
Uncaught ReferenceError: $ is not defined
Loading Jquery fixed the problem. However JQuery isn’t listed as a dependency anywhere.
Might I be doing something wrong ? Or is this some sort of bug ?
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (9 by maintainers)
Top Results From Across the Web
jQuery code works without jQuery library - Super User
The code you posted will not work without jQuery or simliar JS framework. ... Browsers do not include the jQuery library by default....
Read more >How can I manipulate the DOM without a library like jQuery?
When manipulating the Document Object Model with Vanilla JS, you will be directly be accessing the Document and Node s.
Read more >(Now More Than Ever) You Might Not Need jQuery - CSS-Tricks
As the article states, there are vanilla JS/browser API issues related to iterating through NodeLists's and Objects. jQuery provides some ...
Read more >Scroll animation doesn't work as expected without jQuery #581
I tried to use Velocity.js without jQuery and without velocity.ui.js But it seems that scrollTop cannot be animated by velocity. this is ...
Read more >You Don't Need jQuery (anymore)
jQuery makes everything easier. You can't develop a solid web app without it. It's far too difficult to ensure your app will work...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve published v1.18.0 to npm which includes this fix. https://github.com/aichaos/rivescript-js/releases/tag/v1.18.0
The change is now merged into master. You don’t need the local repo trick anymore. @kirsle thanks for accepting my contribution.