Fixing Module not found Error: Can't resolve 'stream' and 'crypto' in React project including web3 and deso-protocol
So often times, you might be building your react app and using some web3 packages and end up getting this error
Currently I am using deso-protocol and getting the same error. To fix this. Follow these steps:
Install react-app-rewired by running npm...
itsaditya.hashnode.dev1 min read
Mo Elzubeir
man in the arena
just thought i'd add that in react native, the same can be achieved by editing the metro.config.js file to configure node module resolvers
module.exports = { resolver: { extraNodeModules: { stream: require.resolve('readable-stream'), crypto: require.resolve('crypto-js'), } }, }