MetaMask / MetaMask/eth-sig-util
Production build error: Can't convert a BigInt value to a number
- Dominant language
- TypeScript
- Stars
- 583
- Forks
- 228
- Avg merge
- 11h 22m
- Merged PRs (30d)
- 7
Description
Hey everyone! So I am using this library to generate the signature for a meta gasless transaction for a mini game I building. And it works perfectly on localhost but when I generate the build folder and use the serve library to run this build folder on a local server I get this Cannot convert a BigInt value to a number error as seen below:

I also get some warnings when I run the react app using the start command provided by the react-app. I don't know if they have anything to do with it but I'll show a few I am getting below

Also the react app is built with create-react-app and is using react version ^18.2.0
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the error with the library in a create-react-app production build using React 18.2.0, then compare the production build with the localhost development run. The issue is resolved when the signature generation works in the served build without the BigInt conversion error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- blockchain, build-system, cryptography
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100