MikeMcl / bignumber.js

A JavaScript library for arbitrary-precision decimal and non-decimal arithmetic
http://mikemcl.github.io/bignumber.js
MIT License
6.68k stars 742 forks source link

Uncaught (in promise) Error: invalid BigNumber value #290

Closed kukudedaxia closed 3 years ago

kukudedaxia commented 3 years ago

image

https://stackoverflow.com/questions/66193724/bignumber-js9-0-1-which-was-used-for-dapp-over-aws-s3-causes-an-invalid-big

kukudedaxia commented 3 years ago

My local is normal, but the production environment is not working

MikeMcl commented 3 years ago

I don't think you are using this library. There is no bignumber.ts file here or any error message which states "invalid BigNumber value".

From your link:

I assumed that it might happen if the bignumber.js version is deprecated to 5.0.14.

There isn't a bignumber.js version 5.0.14. Again, I don't think this library is being used.

kukudedaxia commented 3 years ago

I was normal in the test environment, but an error was reported in the production environment. I think it may be that babel did not use commonJS to transfer bignumber.

jjhesk commented 3 years ago

@kukudedaxia what was the issue and how did you resolve it??

jjhesk commented 3 years ago

should we try different ways to pass the number? https://ethereum.stackexchange.com/questions/59122/web3-js-1-0-is-throwing-big-number-error-while-transfering-tokens/59123

jjhesk commented 3 years ago

I don't think you are using this library. There is no bignumber.ts file here or any error message which states "invalid BigNumber value".

From your link:

I assumed that it might happen if the bignumber.js version is deprecated to 5.0.14.

There isn't a bignumber.js version 5.0.14. Again, I don't think this library is being used.

This error message is occurred from the web3.js. @MikeMcl

MikeMcl commented 3 years ago

@jjhesk

This error message is occurred from the web3.js.

And? What is your point? How is that a proper response to the comment of mine you have quoted?

Why have you created an issue here? web3.js doesn't even use this library.

Stop spamming closed issues.