[go: up one dir, main page]

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

Cannot find module 'node:crypto' #3725

Open
pgtestuser2614 opened this issue Jul 14, 2023 · 7 comments
Open

Cannot find module 'node:crypto' #3725

pgtestuser2614 opened this issue Jul 14, 2023 · 7 comments
Labels

Comments

@pgtestuser2614
Copy link

After installing bitgo package. When i try to run the app. I get issue
Cannot find module 'node:crypto'
Require stack:

  • /data/node_modules/@noble/hashes/cryptoNode.js
  • /data/node_modules/@bitgo/sdk-core/dist/src/bitgo/wallet/index.js
@mmcshinsky-bitgo
Copy link
Contributor

If you are trying to use it in the browser, see web-demo for an example on the fallbacks needed for usage in a browser environment.

@pgtestuser2614
Copy link
Author

Hey @mmcshinsky-bitgo ,
I am using it with node.js
Node version: 16.14.2
bitgo version: 16.0.0

Still getting same issue
Can you tell me the latest stable version of bitgo

Code sample

import * as BitGoJS from "bitgo";
new BitGoJS.BitGo({ env, accessToken });

@mmcshinsky-bitgo
Copy link
Contributor

Are you running this code on a client or server environment?

@papfauzi
Copy link

I'm facing same error, any solution for this bug?

@sethjoltify
Copy link

in my opinion, it's because of node version.
means that node_module version and node version are not compatible.
Try to upgrade node version. version >=16 will be ok.

@wangtao19911111
Copy link

i`m facing same error,any solution for this bug?

@mmcshinsky-bitgo
Copy link
Contributor

Node 16 is currently deprecated. I suggest upgrading to 20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants