Open vikil143 opened 4 years ago
just use const { GetProof } = require('eth-proof')
as it says in the readme
just use
const { GetProof } = require('eth-proof')
as it says in the readme
Yes i import like above but it still gives an error of Buffer is not defined like below image
Oh I see. This is a dependency issue with Buffer
I forgot to include that with my package.json file. Thank you for pointing that out.
hey it still gives same error when i install latest version
@zmitton hi please help me how to tackle issue
All my dependencies seem to be correct
The only thing I can find is this issue: https://github.com/feross/safe-buffer/pull/10 but they claim it was fixed, but I dont understand how it could be fixed from this pull request https://github.com/feross/safe-buffer/pull/12
I added a comment, we will see what he says I guess
otherwise, if you could get a better stack trace it might be helpful
are you on webpack 5 per-chance ?
Hey I m using this package with react-native and i am facing this problem when i import something from this package like this
import {GetProof} from 'eth-proof';
it throw error is it this package was supported for react-native