【发布时间】:2022-02-08 20:28:14
【问题描述】:
我正在尝试构建一个调用智能合约的简单反应应用程序,但是在运行时 - 我遇到了 webpack、节点模块的多个问题。 大多数问题都指向解决错误 这个反应应用程序是使用 create-react-app 模块创建的。 以下是错误
ERROR in ../node_modules/cipher-base/index.js 3:16-43
Module not found: Error: Can't resolve 'stream' in 'C:\Sandip@IBM\BlockChainDev\MultiSigWallet\node_modules\cipher-base'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
类似的其他错误
ERROR in ../node_modules/eth-lib/lib/bytes.js 7:193-227
Module not found: Error: Can't resolve 'crypto' in
ERROR in ../node_modules/swarm-js/node_modules/eth-lib/lib/bytes.js 9:193-227
ERROR in ../node_modules/web3-eth-accounts/lib/index.js 33:74-91
ERROR in ../node_modules/web3-providers-http/lib/index.js 30:11-26
Module not found: Error: Can't resolve 'http' in
我对如何解决这些依赖错误有点迷茫。
谢谢
【问题讨论】:
标签: reactjs webpack node-modules create-react-app solidity