question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Library doesn't seem to work without Jquery

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
kirslecommented, Nov 27, 2017

I’ve published v1.18.0 to npm which includes this fix. https://github.com/aichaos/rivescript-js/releases/tag/v1.18.0

1reaction
johnnymastcommented, Nov 27, 2017

The change is now merged into master. You don’t need the local repo trick anymore. @kirsle thanks for accepting my contribution.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found