Skip to content

web3 dependency error #4

Open
Open
@mw2000

Description

@mw2000

I was trying to use the erc20-snapshot GitHub repository and ran into some issues. I suspect this is due to broken dependencies.

Note: I have a config.json in my directory from where I ran the erc20-snapshot command.
The current error I get is this:

Configuration file was not found.
Configuration file was not found.
web3-shh package will be deprecated in version 1.3.5 and will no longer be supported.
web3-bzz package will be deprecated in version 1.3.5 and will no longer be supported.
/usr/local/lib/node_modules/erc20-snapshot/node_modules/web3-eth-contract/lib/index.js:51
throw new Error('Please use the "new" keyword to instantiate a web3.eth.Contract() object!');
^

Error: Please use the "new" keyword to instantiate a web3.eth.Contract() object!
at Eth.Contract (/usr/local/lib/node_modules/erc20-snapshot/node_modules/web3-eth-contract/lib/index.js:51:15)
at Eth.Contract (/usr/local/lib/node_modules/erc20-snapshot/node_modules/web3-eth/lib/index.js:257:22)
at Object.module.exports.getContract (/usr/local/lib/node_modules/erc20-snapshot/contract.js:12:29)
at Object. (/usr/local/lib/node_modules/erc20-snapshot/events/blockchain.js:8:41)
at Module._compile (internal/modules/cjs/loader.js:956:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Module.require (internal/modules/cjs/loader.js:849:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/usr/local/lib/node_modules/erc20-snapshot/index.js:6:16)
at Module._compile (internal/modules/cjs/loader.js:956:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions