electron-vite-react icon indicating copy to clipboard operation
electron-vite-react copied to clipboard

[Help] dynamic import require is not supported

Open zacard-orc opened this issue 1 year ago • 2 comments

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 avatar Mar 07 '24 05:03 zacard-orc

Please provide a minimum reproduction question

RSS1102 avatar Mar 08 '24 22:03 RSS1102

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

RSS1102 avatar Mar 11 '24 13:03 RSS1102