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
Just installed betfair via node into my angular-fullstack. After trying to require betfair(var betfair = require('betfair'); ), I get this error:
Error: Cannot find module './lib/betfair_session'
at Function.Module.resolveFilename (module.js:339:15)
at Function.Module.load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object. (/var/www/html/**/**/node_modules/betfair/index.js:9:22)
at Module._compile (module.js:413:34)
at Module._extensions..js (module.js:422:10)
at Object.require.extensions.(anonymous function) as .js
Is there something I'm missing here?
The text was updated successfully, but these errors were encountered:
Variables in the index.js are pointing to the wrong source:
var BetfairSession = require('./lib/betfair_session');
var BetfairPrice = require('./lib/betfair_price');
These two routes need the /src directory included in them:
var BetfairSession = require('./src/lib/betfair_session');
var BetfairPrice = require('./src/lib/betfair_price');
Just installed betfair via node into my angular-fullstack. After trying to require betfair(var betfair = require('betfair'); ), I get this error:
Error: Cannot find module './lib/betfair_session'
at Function.Module.resolveFilename (module.js:339:15)
at Function.Module.load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object. (/var/www/html/**/**/node_modules/betfair/index.js:9:22)
at Module._compile (module.js:413:34)
at Module._extensions..js (module.js:422:10)
at Object.require.extensions.(anonymous function) as .js
Is there something I'm missing here?
The text was updated successfully, but these errors were encountered: