truffle-box / react-box

Truffle, Webpack and React boilerplate.
https://truffle-box.github.io/
MIT License
736 stars 251 forks source link

Module not found: Can't resolve 'bignumber.js' [FIX] #78

Closed deomaius closed 5 years ago

deomaius commented 6 years ago

I have faced this error before whilst using the new updated version of react-box;

Module not found: Can't resolve 'bignumber.js' in 
'/Users/sxg/Desktop/exampleProject/client/node_modules/truffle-contract/lib'

It seems that the version provided for truffle-contract is incorrect in the client/package.json file;

"truffle-contract": "^4.0.0-next.0",

Where this is quite incorrect, as there is only a current version of 3.0.6 as stated on the npm repo so it should be as so;

"truffle-contract": "^3.0.6",

Everything should work as so, once applied!

elie222 commented 6 years ago

A few PRs around this already. eg: https://github.com/truffle-box/react-box/pull/75

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

adrianmcli commented 5 years ago

Truffle-contract is no longer used.