web3.js icon indicating copy to clipboard operation
web3.js copied to clipboard

BigNumber dependency

Open orlandoc01 opened this issue 9 years ago • 33 comments

The dependency listed here https://github.com/ethereum/web3.js/blob/develop/package.json#L11 points to a github repo that no longer exists. Until this dependency is resolved, I can no longer install and use this library

orlandoc01 avatar Jun 23 '17 20:06 orlandoc01

+1

Same here. Can't install web3

maraoz avatar Jun 23 '17 20:06 maraoz

+1

Same problem we are facing.

obale avatar Jun 23 '17 20:06 obale

How is 1.0 handling BigNumber (devdependency) 4.0.0? Can we backport the changes to fix this issue? Where does bn.js come into picture?

alankritjoshi avatar Jun 23 '17 20:06 alankritjoshi

this should fix the issue, not sure if bignumber updates have broken anything on web3.js but it seems to work. I'm going to run more tests to be sure.

https://github.com/ethereum/web3.js/pull/905

shayanb avatar Jun 23 '17 21:06 shayanb

Ironically, the top recommended comment to "Ethereum is impossible to get started" is use embark which has dep on web3 which doesn't install due to this 😂 https://www.reddit.com/r/ethereum/comments/6iorba/getting_started_on_ethereum_is_impossible_my/?st=j4aee9mk&sh=54e30401

contextlimit avatar Jun 23 '17 22:06 contextlimit

hey, just came here to say I ran into the same issue. Is there a workaround until this patch is pushed?

theporpoise avatar Jun 23 '17 22:06 theporpoise

@theporpoise one way is to change your package file to use the fixed version. I'm using this at the moment "web3": "https://github.com/shayanb/web3.js#develop" in package.json

shayanb avatar Jun 23 '17 22:06 shayanb

thanks @shayanb !

theporpoise avatar Jun 23 '17 22:06 theporpoise

I was trying to fix this after checking https://github.com/ethereum/web3.js/pull/439 but indeed the repo is not available anymore.

nicoschtein avatar Jun 23 '17 23:06 nicoschtein

Modify package.json as below

{
  "dependencies": {
    "web3": "github:shayanb/web3.js#develop"
  }
}

wangjia184 avatar Jun 24 '17 02:06 wangjia184

Looks like PR #905 that was merged fixed the issue in the develop branch. However, since the situation requires a hotfix, there should be a fix made to the master branch and probably a new patch release, unless the team is planning on releasing v1.0 soon (since it appears to be fixed there)? Otherwise the published npm module is still broken and everyone depending on it through an npm installation can not use this.

orlandoc01 avatar Jun 24 '17 02:06 orlandoc01

Something like this? https://github.com/ethereum/web3.js/pull/906

orlandoc01 avatar Jun 24 '17 02:06 orlandoc01

Can someone please release the hotfix on npm?

MitchK avatar Jun 24 '17 03:06 MitchK

Yep my issue is with npm as well.

analogrytm avatar Jun 24 '17 04:06 analogrytm

This is currently breaking testrpc as well.

https://travis-ci.org/ethereumjs/testrpc/jobs/246462784

https://github.com/ethereumjs/testrpc/issues/332

OR13 avatar Jun 24 '17 05:06 OR13

Seems like marek did remove bignumber.js from his repo

frozeman avatar Jun 24 '17 05:06 frozeman

Having issues with truffle ATM as well.

adonley avatar Jun 24 '17 06:06 adonley

I merged @orlandoc01 PR and published 0.19.1, but i can't get the meteor version uploaded, something is broken on the meteor servers. @adonley you still have the issues with the current develop?

frozeman avatar Jun 24 '17 06:06 frozeman

@frozeman I'm good with develop in my package.json but I can't get truffle to grab it's deps correctly - I'll make the changes to truffle to use dev. Thanks for moving quickly on this.

adonley avatar Jun 24 '17 06:06 adonley

thanks @orlandoc01 for the PR and thanks @frozeman for moving quickly!

MitchK avatar Jun 24 '17 06:06 MitchK