ascariandrea / revolut-sdk

Typesafe SDK for Revolut Business API https://www.revolut.com/it/business
13 stars 2 forks source link

ModuleNotFoundError #13

Closed kukac7 closed 5 years ago

kukac7 commented 5 years ago

Could not find module in path: 'revolut-sdk/dist/api/accounts' relative to '/node_modules/revolut-sdk/dist/index.js'

demo

ascariandrea commented 5 years ago

I realised I didn't publish the package properly - try with the v0.4.4

kukac7 commented 5 years ago

cool, thanks!

but...

const accounts = revolut.accounts.getAll().run();
accounts.then(r => console.log(r)).catch(e => console.error(e));

Left {value: Error, _tag: "Left", constructor: Object}

ascariandrea commented 5 years ago

That's the correct result: accounts is Either type.