---
title: "Comment by Mo Elzubeir on \"Fixing Module not found Error: Can't resolve 'stream' and 'crypto' in React project including web3 and deso-protocol\" | Hashnode"
description: "just thought i&#39;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 ="
url: "https://hashnode.com/posts/fixing-module-not-found-error-cant-resolve-stream-and-crypto-in-react-project-including-web3-and-deso-protocol/6324bc58dd55cd8b89b1d3df/comment/636c6324e6d74dfc9599744a"
---

[Discussion](https://hashnode.com/posts/fixing-module-not-found-error-cant-resolve-stream-and-crypto-in-react-project-including-web3-and-deso-protocol/6324bc58dd55cd8b89b1d3df)

Comment [Fixing Module not found Error: Can't resolve 'stream' and 'crypto' in React project including web3 and deso-protocol](https://hashnode.com/posts/fixing-module-not-found-error-cant-resolve-stream-and-crypto-in-react-project-including-web3-and-deso-protocol/6324bc58dd55cd8b89b1d3df)

[Mo Elzubeir](https://hashnode.com/@elzubeir)

[Nov 10, 2022](https://hashnode.com/posts/fixing-module-not-found-error-cant-resolve-stream-and-crypto-in-react-project-including-web3-and-deso-protocol/6324bc58dd55cd8b89b1d3df/comment/636c6324e6d74dfc9599744a)

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'),
    }
  },
}
```

[Aditya Chaudhary](https://hashnode.com/@ItsAditya)

[Feb 17, 2023](https://hashnode.com/posts/fixing-module-not-found-error-cant-resolve-stream-and-crypto-in-react-project-including-web3-and-deso-protocol/6324bc58dd55cd8b89b1d3df/comment/636c6324e6d74dfc9599744a#reply-63efc6c53c9c765be7a4868c)

great
