Uncaught TypeError: web3.eth.Contract is not a constructor
At first, I suspected I had a problem with properly setting my Web3 instance, but when I run:
The console shows that I the web3 instance is set.
I try and set my the contract instance using the following code:
const myContract = new web3.eth.Contract([//json array]);
Any tips for solving this?
npm ls web3. For v0.x, remove the
Contractwith an upper-case C to
contractwith a lower-case c.