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.

Rivescript not loading in Node-Webkit

See original GitHub issue

When i var RS = require("rivescript") from Node-Webkit(NW.js) desktop application builder. The console.log(RS) shows nothing. So somewhere in Rivescript something went wrong. NW.js has a Nodejs and window environment working together. Maybe the issue is there?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kirslecommented, Oct 28, 2016

Yeah that function could do with being updated if a more reliable way of detecting web vs. node can be used.

It looked for the window object (always present on the web), and for module to exist (e.g. like in module.exports, which usually doesn’t exist on the web).

0reactions
eliseheincommented, Mar 13, 2017

Thanks @kirsle

I went for parse() as it wasn’t prefixed with an underscore, as some of the other methods are. Is the assumption that private methods and properties are prefixed with an underscore (e.g., _users) inappropriate here?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tutorial - RiveScript.com
After you begin writing RiveScript documents, you can test your code at any time by running the RiveScript interpreter and pointing it at ......
Read more >
npm - Snyk
@alancnet/fantasy-names · @alexamies/chinesedict-js · @alifd/next · @alpacahq/alpaca-trade-api · @amcharts/amcharts3-angular · @amcharts/amcharts4 ...
Read more >
Which is better if I need to develop a chatbot, Node js or Python?
First, Node.js is not a language: it is a runtime environment for programs built in the JavaScript language on the V8 JavaScript engine....
Read more >
rivescript - npm
Start using rivescript in your project by running `npm i rivescript`. ... Triggers are only limited to not contain certain metacharacters ...
Read more >
Research
Aurora: A language that can accept not only text but symbols (formulae, etc) as input. ... CSPLib: A library of test problems for...
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