Closed Amais26 closed 2 years ago
Which nodejs version are you using? It's a built-in module included with node, that's why it's not listed in the package dependencies.
In case you're trying to use this in a frontend environment (and you're aware of the CORS errors you're likely to see from bybit's APIs), there's a webpack config that swaps node-support with browser-support, for the browser-equivalent of the crypto module: https://github.com/tiagosiebler/bybit-api/blob/master/webpack/webpack.config.js#L18-L25
Got error when compiling
It seems to be bound to file node-support.js line 13
https://www.npmjs.com/package/crypto
How do you handle this error ?