-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Unable to resolve module buffer
#18
Comments
@Jancat Sorry, I don't understand your question. This module is called |
The safe-buff/index.js line 2 It throws the error: Unable to resolve module |
Iam having the same error, actually the module buffer is not listed at package.json @Jancat , do you also getting this error on react-native run-ios/run-android ? maybe it's happening because buffer is a native nodejs module, but may not work at react-native as a lot of native nodejs modules. At commonJS, is not necessary to require buffer. I think it is my problem too (react-native context) |
@lfernando-silva Yes, I'm woking on react-native too. Do you have a good idea to fix the issue or an alternative solution to use |
I think installing buffer by npm install --save buffer and using rn-nodeify to makes adapt Buffer native module, it may to work, but not sure. Maybe you will adapt some other modules of sha package. In my case, I just replaced bip39 lib to react-native-bip39 and this part is ok now, because does not uses safe-buffer. |
Ok, thanks! I will have a try. @lfernando-silva |
You might find this issue useful if you're using react-native: facebook/react-native#14796 |
My node version is
v9.2.1
Does the node doesn't support the deprecated grammer ?
The text was updated successfully, but these errors were encountered: