You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
I created a fresh react-app only installing the @metamask/eth-sig-util lib and I simply just import the signTypedData function without even implementing it and I get that exact same error just like in my actual project I am building
djimenezdev
changed the title
Cannot convert a BigInt value to a number
Production build error: Can't convert a BigInt value to a number
Apr 3, 2023
Note that in general, many BigNumber instances are not safe to call toNumber() on since JavaScript number can not fit some values. In particular, users should ensure they aren't using older versions of web3, which are affected by this.
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
The text was updated successfully, but these errors were encountered: