Skip to content
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

ReferenceError: Buffer is not defined #37

Closed
vikil143 opened this issue Oct 31, 2020 · 3 comments
Closed

ReferenceError: Buffer is not defined #37

vikil143 opened this issue Oct 31, 2020 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@vikil143
Copy link

vikil143 commented Oct 31, 2020

I m successfully install @walletconnect/client package after the when i import @walletconnect/client package It throw this error
(ReferenceError: Buffer is not defined ) and also I follow this below steps.

npm i --save react-native-crypto // install peer deps npm i --save react-native-randombytes react-native link react-native-randombytes // install latest rn-nodeify npm i --save-dev tradle/rn-nodeify ./node_modules/.bin/rn-nodeify --hack --install

I m implementated this thing with react native Is it this library was supportted for react-native

Is there any help to solve this problem

Thanks in advance

@aetherjs
Copy link

Getting the same error now while using 2.0 standalone client, following this tutorial. Full error stack trace:

Object { context: "client" }
 ReferenceError: Buffer is not defined
    typedarrayToBuffer index.js:15
    arrayToBuffer index.ts:43
    arrayToHex index.ts:47
    generateRandomBytes32 crypto.ts:14
    propose engine.ts:356
    node_modules bundle.js:15454
    create engine.ts:135
    create pairing.ts:91
    connect client.ts:156
    connectWallet App.jsx:95
    React 14
    unstable_runWithPriority scheduler.development.js:468
    React 15
    js index.js:17
    factory react refresh:6
    Webpack 3
react_devtools_backend.js:4045:25

Has anyone been able to find a workaround or pinpoint a particular installation/webpack setup error to fix this? Thanks.

@Nuzzlet
Copy link

Nuzzlet commented Feb 22, 2022

Only solution I've found so far is pre-bundling the resources you need with webpack

@hackyguru hackyguru self-assigned this Aug 30, 2022
@finessevanes
Copy link
Contributor

@vikil143 is this still an issue?

@finessevanes finessevanes added the question Further information is requested label Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants