Error: [number-to-bn] while converting number "0xNaN" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported

The following error message can occur when performing a transaction in MetaMask:

MetaMask error


In this case, start by reinstalling MetaMask on your device.

Before you uninstall, make sure you have your Secret Recovery Phrase and seed phrases (or private keys) imported accounts). You do not need to have your MetaMask password, as you'll have to choose a new one as part of the restore process anyway.

For details on how to restore your account after reinstalling MetaMask, please refer to this article.

Was this article helpful?
51 out of 153 found this helpful

Articles in this section

See more