Closed generalpiston closed 5 years ago
My assumption is that updating the web3 dependency in web3-contracts-loader would solve the issue, but I'm not sure if there are other implications there.
Makes sense @pixelmatrix . We may need to fix generalpiston/web3-contracts-loader
.
It looks like 1.0.0-beta.55
is being installed by default. We should enforce 1.0.0-beta.21
is being used.
Thank you @pixelmatrix for finding and helping us figure out this bug!
So I experienced this issue when downloading the repo and installing from scratch.
Upon running npm install at the root of the package I would see errors like this:
After the process of elimination, I found that it was due to the web3-contracts-loader git module, so I downloaded it locally to investigate.
Sure enough, running npm install caused the same failure.
Next, I went into package.json and updated the web3 dependency to only point at the beta version (right side of the || operator).
After running npm install again, I saw a new error with typescript this time:
I noticed this was complaining about the typings from web3, and nothing in this repo. I also noticed the specific version of web3 installed was fairly outdated, so I bumped it to the a more modern version, hoping the typings were improved so that the package could build.
Once I did that, the web3-contracts-loader package was building fine locally, so I moved the entire directory into the mobidex node_modules directory, and the app worked fine from that point on.