Hi all,
I recently started developing a small game on the blockchain in order to further my understanding.
I have written the smart contract portion of the game and I am now working on the web portion. I am using angular 5 and I cant seem to import the web3 library and instantiate it. I've tried:
1. import * as Web3 from 'web3';
then I get the error "Cannot use 'new' with an expression whose type lacks a call or construct signature."
2. import Web3 from 'web3';
then I get the error "web3_1.default is not a constructor"
I suspect the problem has to do with the typescript definitions provided by npm. I have read everything I could find on Google so any help would be greatly appreciated.
1 ·
Comments