MetaMask / MetaMask/eth-sig-util

der.ts:6 Uncaught ReferenceError: Buffer is not defined

Open
#255 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
583
Forks
228
Avg merge
11h 22m
Merged PRs (30d)
7

Description

I am facing this issue when i used
`import {
encrypt
} from '@metamask/eth-sig-util';`
i am facing this error
i have also tried
`import {Buffer} from 'buffer'`;
Can someone please guide me here?

![image](https://user-images.githubusercontent.com/52135949/174651077-037fa9f0-18a4-45b8-b12e-f6fce1d141dc.png)

`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported `Buffer is not defined` error from the `@metamask/eth-sig-util` import and inspect `der.ts:6`. Check the consumer environment and package compatibility, then define done as importing and using `encrypt` without the runtime error in the affected setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cryptography
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.