Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Can't find variable: Buffer #1106

Open
Sonwanseo opened this issue Mar 24, 2022 · 0 comments · May be fixed by #1107
Open

Can't find variable: Buffer #1106

Sonwanseo opened this issue Mar 24, 2022 · 0 comments · May be fixed by #1107

Comments

@Sonwanseo
Copy link

Sonwanseo commented Mar 24, 2022

Version of EOSJS
22.1.0

Describe the bug
When I use PrivateKey, I got an error.
The error message is "ReferenceError: Can't find variable: Buffer".
This error causes because there's no buffer import statement.

(The Buffer is node.js built in object, so I don't understand why this error caused...)

To Reproduce
If you need the example, please refer to my test project
Clone my project, and execute 'yarn start' in terminal
Please check 'src/PrivateKey.ts' file

Expected behavior
No Error !

Screenshots
스크린샷 2022-03-24 오후 5 03 25

Desktop (please complete the following information):

  • OS: macOS Monterey 12.2.1
  • Version
    • Node.js 16.14.2 (LTS)
    • Expo SDK 44
    • TypeScript 4.3.5

Additional context
Sorry for my bad English,,

@Sonwanseo Sonwanseo linked a pull request Mar 24, 2022 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant