BufferUtil is undefined: bitcore lib
Closed this issue · 1 comments
@mvayngrib I am having trouble "nodeifying" the bitcore library.
You can check out the source code @ https://github.com/SeanAvery/react-native-eth-wallet
After running with --hack --install I am getting an error: BufferUtil.isBuffer is not a function
This makes sense, because the the object does not contain a isBuffer function
I have tried following the hack described here bitpay/bitcore-lib#108
Also, npm installed buffer and ran rn-nodeify again
The buffer object looks good as such:
However, I am getting this strange error: Requiring module "21", which threw an exception.
This is seems to be the line where I require buffer...
Is there anything else I can try out?
Thank you!
@seanavery holy crap am i late to this. Looks like there's a circular dep in bitcore-lib between buffer.js and preconditions.js that the react-native packager doesn't like. This is probably an issue to submit to bitcore-lib or metro-bundler!