-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with loadFile #332
Comments
Does anyone else get an error like this? According to the rivescript source and your example code, it shouldn't be triggering this warning: rivescript-js/src/rivescript.js Lines 361 to 421 in 2a92d5b
It checks if the |
I had this issue when i ran outdated nodejs along side the web pack back in 2019? couldn't tell you what kept displaying it but it was related to the 2019 source code that's a given after 2020 this never happened again at lease this issue. |
After the 2.0 update I still get a "DEPRECATED: RiveScript.loadFile() now returns a Promise instead of using callbacks" error eventhough I fixed my code...
let bot = new RiveScript();
bot.loadFile("/brain.rive").then(function() {
console.log("Bot loaded!");
bot.sortReplies();
}).catch(function(err, filename, lineno) {
console.error("An error occurred!");
});
The text was updated successfully, but these errors were encountered: