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

[Help] dynamic import require is not supported #206

Open
zacard-orc opened this issue Mar 7, 2024 · 2 comments
Open

[Help] dynamic import require is not supported #206

zacard-orc opened this issue Mar 7, 2024 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@zacard-orc
Copy link

Describe the problem you confuse

hi , after i installed web3 tools, just like

"ethereumjs-util": "^7.1.5",
"ethereumjs-wallet": "^1.0.2",
"web3": "^1.8.0",
"bip39": "^3.0.4",
"crypto-js": "^4.1.1"

and then ,i apply these packages and run , then the renderer console tell me

Uncaught Error: Dynamic require of "crypto" is not supported

Uncaught Error: Dynamic require of "crypto" is not supported
at chunk-35XAPQLS.js?v=e1dee1fd:10:9
at node_modules/.vite-electron-renderer/crypto.mjs (chunk-IKTF4L45.js?v=e1dee1fd:88:11)
at __init (chunk-35XAPQLS.js?v=e1dee1fd:13:56)
at node_modules/ethereumjs-wallet/dist.browser/index.js (ethereumjs-wallet.js?v=e1dee1fd:2957:33)
at __require2 (chunk-35XAPQLS.js?v=e1dee1fd:16:50)
at ethereumjs-wallet.js?v=e1dee1fd:3348:16

can anyone help me?

@zacard-orc zacard-orc added the help wanted Extra attention is needed label Mar 7, 2024
@RSS1102
Copy link
Member

RSS1102 commented Mar 8, 2024

Please provide a minimum reproduction question

@RSS1102
Copy link
Member

RSS1102 commented Mar 11, 2024

image
I can use it normally. If you still have the blame issue, please provide your error code usage method.
crypto-js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants