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
Does this article need to be translated?
The following error message can occur when performing a transaction in MetaMask:
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 for any 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.