-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
web3.js crypto from
node_modules/web3-eth-accounts/src/index.js`: Module does not exist in the module map
#1095
Comments
@vivekebics I am facing same issue |
Could you provide more context about the issue? What are you using for bundling? Can you provide a minimal project that demonstrates the problem? |
I can see where the problem is. But don't know how to fix this. { |
it's using node.js build-in crypto library, which means you will need to do something "special" to get it working outside of node.js... not sure this is a solved problem right now as far as I can tell... |
Solved this issue by adding the crypto directive for react-native in package.json |
@KSanthanam can u tell me why I can't solve this problem with your opinion?
I had installed web3 and added those code in package.json, but also didn't work, I tried remove node_modules folder and installed again, and clear watchman and so on, just didn't work, It's terrible! could u help me? |
I just find the solution in this url https://gist.github.com/dougbacelar/29e60920d8fa1982535247563eb63766 |
I think it is because a dependency is 'scrypt.js' when it really should be 'scrypt' ... ? |
This issue is not directly related to web3.js and because of that I will closing it. It's described here https://gist.github.com/dougbacelar/29e60920d8fa1982535247563eb63766 how to set up web3.js for react native. |
this issue happened again with RN 0.57.1 |
This did not work for me??? |
plugins: [ add this babel.config.js file for react native |
error: bundling failed: UnableToResolveError: Unable to resolve module
crypto
fromnode_modules/web3-eth-accounts/src/index.js
: Module does not exist in the module mapThe text was updated successfully, but these errors were encountered: