nifty-gateway / niftygateway

Nifty gateway with examples
15 stars 11 forks source link

Runtime error throw during import of npm package #1

Open jackyyanimocabrands opened 5 years ago

jackyyanimocabrands commented 5 years ago

TypeError: _web3EthAbi.AbiCoder is not a constructor error is thrown at runtime at import NiftyGatewayJS from 'niftygateway';

Screenshot 2019-09-10 at 10 37 30 AM

react@^16.8.6

jackyyanimocabrands commented 5 years ago

I had tested the example project from with the package on npm, same issue as above

dcarlcf commented 5 years ago

This looks like it is an issue with the web3 package. We use the web3 encoder from the web3 1.0 JS package.

Can you try running npm install a second time?

Which version of node are you using? We are using v8.11.3 - web3js can be pretty buggy on other versions

jackyyanimocabrands commented 5 years ago

we were on v11.14.0, and now with v8.11.3 still no luck and same error.

DanTehrani commented 4 years ago

Same here. I tried with node v8.11.3 but got the same error.