Skip to content
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

Uncaught TypeError: (intermediate value).toBigNumber is not a function #10

Open
Rich2020 opened this issue Apr 15, 2021 · 3 comments
Open

Comments

@Rich2020
Copy link

Not sure why I'm getting this. I've tried installing the specific web3 and truffle-contract (as listed in the package.json file).

truffle-contract.js:29 Uncaught TypeError: (intermediate value).toBigNumber is not a function
    at truffle-contract.js:29
    at Object.<anonymous> (truffle-contract.js:962)
    at Object.1../statuserror.js (truffle-contract.js:964)
    at o (truffle-contract.js:1)
    at truffle-contract.js:1
    at Object.2../contract.js (truffle-contract.js:967)
    at o (truffle-contract.js:1)
    at r (truffle-contract.js:1)
    at truffle-contract.js:1
@jdohm
Copy link

jdohm commented Apr 18, 2021

According to this comment trufflesuite/ganache#476 (comment)
toBigNumber was renamed to toBN in version 1.0.0 of web3.
To solve your problem use a compatible version of web3, for example 0.20.6.

@kigh143
Copy link

kigh143 commented Jul 7, 2021

Reinstalling [email protected] worked for me.

@6str
Copy link

6str commented May 17, 2022

0.20.6 worked for me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants