---
title: "Discussion on \"Fixing Module not found Error: Can't resolve 'stream' and 'crypto' in React project including web3 and deso-protocol\" | Hashnode"
description: "Discussion on \"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\n\nCurrently I am using deso-protocol and getting the same error. To fix this. Follow these steps:\n\nInstall react-app-rewired by running npm..."
url: "https://hashnode.com/posts/fixing-module-not-found-error-cant-resolve-stream-and-crypto-in-react-project-including-web3-and-deso-protocol/6324bc58dd55cd8b89b1d3df"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Fixing Module not found Error: Can't resolve 'stream' and 'crypto' in React project including web3 and deso-protocol](https://itsaditya.hashnode.dev/fixing-module-not-found-error-cant-resolve-stream-and-crypto-in-react-project-including-web3-and-deso-protocol?utm_source=hashnode&utm_medium=feed)

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...

Sep 16, 2022 · 1 min read · itsaditya.hashnode.dev  
Updated Oct 16, 2022  
Read the article

-   [#crypto](https://hashnode.com/tag/crypto)
-   [#web3](https://hashnode.com/tag/web3)
-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

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

@ItsAditya · India

  
[View profile](https://hashnode.com/@ItsAditya)

software craftsman making stuff

19 y/o independent software dev.

## Responses 1

Markdown supported · ⌘↵ to post

[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
