Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"crypto" has been externalized .. and can't be accessed in client code. #496

Open
for04 opened this issue Sep 12, 2021 · 0 comments
Open

Comments

@for04
Copy link

for04 commented Sep 12, 2021

Whats the official workaround to get this package work with React/Preact which already uses this "crypto"?

Uncaught Error: Module "crypto" has been externalized for browser compatibility and cannot be accessed in client code.

get crypto:3
    privateCall2 http-client.js:209
    promise callback*node_modules/binance-api-node/dist/http-client.js/privateCall2/< http-client.js:204
    allOrders http-client.js:431
    <anonymous> Preact
crypto:3:10
    get crypto:3
    privateCall2 http-client.js:209
    (Async: promise callback)
    privateCall2 http-client.js:204
    allOrders http-client.js:431
    <anonymous> Preact
    ExecuteAsyncModule self-hosted:2482
    InnerModuleEvaluation self-hosted:2381
    InnerModuleEvaluation self-hosted:2381
    evaluation self-hosted:2332
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants