peterszombati / xapi-node

xStation5 Trading API for NodeJS/JS
https://peterszombati.github.io/xapi-node/
Other
58 stars 19 forks source link

issue with node 18 #27

Closed marius-oprea closed 2 years ago

marius-oprea commented 2 years ago

In package.json, have installed xapi-node version 2.5.5, on node 18.10.0 I run the command: npm start and got this issue:

...\node_modules\xapi-node\build\core\Socket\SocketConnection.js:147 if (retries > 0 && e.reason.code !== Enum_1.errorCode.XAPINODE_1 && e.reason.code !== Enum_1.errorCode.BE005) { ^

TypeError: Cannot read properties of undefined (reading 'code') at ...\node_modules\xapi-node\build\core\Socket\SocketConnection.js:147:41

peterszombati commented 2 years ago

fixed in 2.5.6, if still there is the error please reopen the ticket and add more info

marius-oprea commented 2 years ago

now it's working as expected. thank you.