node-binance-api icon indicating copy to clipboard operation
node-binance-api copied to clipboard

Cannot find module net

Open Quenos opened this issue 4 years ago • 5 comments

I'm creating an app with electron and node.js

Installed node-binance-api

Compiled perfectly

Calling the API produces the following error in chrome:

Uncaught (in promise) Error: Cannot find module 'net' at webpackEmptyContext

Quenos avatar Aug 28 '20 17:08 Quenos

I managed to get this working using electron in the past, but that was some time ago

jaggedsoft avatar Aug 28 '20 17:08 jaggedsoft

That's cool, but how? :)

Quenos avatar Aug 28 '20 18:08 Quenos

hello, I have the same error as you. Did you find the solution?

alonep56 avatar Oct 11 '20 13:10 alonep56

@alonep56 No, but I gave up on using libraries for exchange APIs. Coding it yourself is almost as fast as troubleshooting the existing libs IMO and you can make it exactly as you like

Quenos avatar Oct 11 '20 17:10 Quenos

I think this is the route I took as well. Since the original is designed for node and electron needs something designed for the browser

jaggedsoft avatar Oct 11 '20 17:10 jaggedsoft