You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey I'm trying out the example from the readme file, but I'm getting an error.
Here's the code for the example:
'use strict'varAva=require("ava-ia").Ava;varweather=require('ava-ia/lib/intents').weather;varmovie=require('ava-ia/lib/intents').movie;varforecastYahoo=require("ava-ia/lib/actions").forecastYahoo;varforecastMSN=require("ava-ia/lib/actions").forecastMSN;varmovieDB=require("ava-ia/lib/actions").movieDB;// 1. New instanceconstava=newAva({debug: true// If you want see intents/actions trace log.});// 2. Configure the intentsava.intent(weather,[forecastYahoo,forecastMSN]).intent(movie,movieDB);// 3. Chat with Avaava.listen('Do you know if tomorrow will rain in Bangkok?').then(state=>console.log(state)).catch(error=>console.log(state))
And here's the error I'm getting:
/home/fernandodoglio/workspace/personal/ava/node_modules/ava-ia/lib/helpers/factoryActions.js:10
var ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(state, actions) {
^
ReferenceError: regeneratorRuntime is not defined
at /home/fernandodoglio/workspace/personal/ava/node_modules/ava-ia/lib/helpers/factoryActions.js:10:31
at Object. (/home/fernandodoglio/workspace/personal/ava/node_modules/ava-ia/lib/helpers/factoryActions.js:36:2)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/home/fernandodoglio/workspace/personal/ava/node_modules/ava-ia/lib/helpers/index.js:43:23)
at Module._compile (module.js:409:26)
The text was updated successfully, but these errors were encountered:
Hey I'm trying out the example from the readme file, but I'm getting an error.
Here's the code for the example:
And here's the error I'm getting:
The text was updated successfully, but these errors were encountered: