-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
Cannot convert a BigInt value to a number #298
Comments
I have got the same error and I guess this is being produced by the @noble package being used internally, I'm using it in an Angular project and the by keeping the buildOptimiser as true it breaks (basically the prod server) but locally everything works fine. |
Hi @irzhywau, when you say you received this error in a React app, did you use |
yes indeed I used create-react-app |
@malaDev Hmm, I'm not able to reproduce this in a fresh React app ( |
oh really unfortunately it's a private repo. that's weird. do you have any idea which part can cause such an exception? any other lib? |
@malaDev It's possible that it's some other library. Do you have any other dependencies that you're using in your repo besides this library? |
I actually only get this error when I add the library, without it everything work smoothly |
@malaDev Right, but there may be an interaction between this library and another library you're using. If I know all of the libraries you're using then I am better able to reproduce this issue. Or, if there's a stack trace you can post, that may give me more information. |
Hi I was also having this issue, and I tracked it down to v5.0.0 moving to @noble package (which uses BigInt). https://github.com/MetaMask/eth-sig-util/releases
I pinned my version to the last version before this change:
and all is good, my dapp supports safari < 14 again. Hope this helps. |
When I loaded the library I just got this error in a react app
I got this error when loading the page, the method is not even executed yet. any idea?
React version
18.2.0
The text was updated successfully, but these errors were encountered: