EatTheBlocks Forum

Compiled with problems: Mini-project "Multisig Wallet" - Code the frontend (Full Dapp) with JS, React & Web3

Hi,

I have all code fine, but i still having this error. How to solve it?

Figure 6 Course, Mini-project “Multisig Wallet” - Code the frontend (Full Dapp) with JS, React & Web3. PART 9.

Blockquote Compiled with problems:X

ERROR in ./node_modules/cipher-base/index.js 3:16-43

Module not found: Error: Can’t resolve ‘stream’ in ‘C:\Codeando Local\EatTheBlocks\Multisig-Wallet c\Multisig-Wallet\client\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.

If you want to include a polyfill, you need to:
- add a fallback ‘resolve.fallback: { “stream”: require.resolve(“stream-browserify”) }’
- install ‘stream-browserify’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “stream”: false }

ERROR in ./node_modules/eth-lib/lib/bytes.js 9:193-227

Module not found: Error: Can’t resolve ‘crypto’ in ‘C:\Codeando Local\EatTheBlocks\Multisig-Wallet c\Multisig-Wallet\client\node_modules\eth-lib\lib’

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.

If you want to include a polyfill, you need to:
- add a fallback ‘resolve.fallback: { “crypto”: require.resolve(“crypto-browserify”) }’
- install ‘crypto-browserify’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “crypto”: false }