truffle-box / react-box

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

Update truffle-contract dependency version #66

Closed wbarksdale closed 5 years ago

wbarksdale commented 6 years ago

(disclaimer: I am utterly clueless about node and truffle at large, just starting out)

While trying to get started with the truffle react box. I performed the following steps:

$ truffle unbox react
$ truffle migrate
$ cd client && npm run start

This lead to the following error:

./node_modules/truffle-contract/lib/reformat.js
Module not found: Can't resolve 'bignumber.js' in '/Users/me/code/dapps/mdhp/client/node_modules/truffle-contract/lib'

I went over to the trufflesuite repo and noticed that the current version of truffle-contract is 3.0.6. I then updated package.json to use ^3.0.6 for the truffle-contract version and ran npm install and after that running npm run start is successful.

Someone with a better understanding than me should audit this change and make sure I'm not breaking something else, however this is fixing the issue for me.

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.

stale[bot] commented 5 years ago

This issue has been closed, but can be re-opened if further comments indicate that the problem persists. Feel free to tag maintainers if no there is no reply to further comments.