question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Cannot find module 'eth-block-tracker'

See original GitHub issue

hello : ) I have some integration tests which just started failing.

Error: Cannot find module 'eth-block-tracker'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/orie/TransmuteIndustries/transmute-framework/node_modules/web3-provider-engine/index.js:4:25)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)

https://travis-ci.org/transmute-industries/transmute-framework/builds/242685558

I can see previous builds that succeeded had:

β”œβ”€β”¬ @digix/truffle-lightwallet-provider@0.0.12 
β”‚ β”œβ”€β”¬ eth-lightwallet@2.5.4 
β”‚ β”‚ β”œβ”€β”€ bignumber.js@2.0.7 
β”‚ β”‚ β”œβ”€β”¬ bitcore-lib@0.14.0 
β”‚ β”‚ β”‚ β”œβ”€β”€ bn.js@2.0.4 
β”‚ β”‚ β”‚ β”œβ”€β”€ bs58@2.0.0 
β”‚ β”‚ β”‚ β”œβ”€β”€ buffer-compare@1.0.0 
β”‚ β”‚ β”‚ β”œβ”€β”¬ elliptic@3.0.3 
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ brorand@1.0.5 
β”‚ β”‚ β”‚ β”‚ └── hash.js@1.0.3 
β”‚ β”‚ β”‚ β”œβ”€β”€ inherits@2.0.1 
β”‚ β”‚ β”‚ └── lodash@3.10.1 
β”‚ β”‚ β”œβ”€β”€ bitcore-mnemonic@1.2.5 
β”‚ β”‚ β”œβ”€β”¬ buffer@4.9.1 
β”‚ β”‚ β”‚ β”œβ”€β”€ base64-js@1.2.0 
β”‚ β”‚ β”‚ β”œβ”€β”€ ieee754@1.1.8 
β”‚ β”‚ β”‚ └── isarray@1.0.0 
β”‚ β”‚ β”œβ”€β”¬ elliptic@3.1.0 
β”‚ β”‚ β”‚ β”œβ”€β”€ bn.js@2.2.0 
β”‚ β”‚ β”‚ β”œβ”€β”€ brorand@1.1.0 
β”‚ β”‚ β”‚ └── hash.js@1.0.3 
β”‚ β”‚ β”œβ”€β”€ scrypt-async@1.3.1 
β”‚ β”‚ β”œβ”€β”€ tweetnacl@0.13.2 
β”‚ β”‚ └─┬ web3@0.15.3 
β”‚ β”‚   └── bignumber.js@2.0.7  
β”‚ β”œβ”€β”¬ ethereumjs-tx@1.3.1 
β”‚ β”‚ └── ethereum-common@0.0.18 
β”‚ └─┬ web3-provider-engine@12.2.2 

And the current one that is failing is:

β”œβ”€β”¬ @digix/truffle-lightwallet-provider@0.0.12 
β”‚ β”œβ”€β”¬ eth-lightwallet@2.5.4 
β”‚ β”‚ β”œβ”€β”€ bignumber.js@2.0.7  
β”‚ β”‚ β”œβ”€β”¬ bitcore-lib@0.14.0 
β”‚ β”‚ β”‚ β”œβ”€β”€ bn.js@2.0.4 
β”‚ β”‚ β”‚ β”œβ”€β”€ bs58@2.0.0 
β”‚ β”‚ β”‚ β”œβ”€β”€ buffer-compare@1.0.0 
β”‚ β”‚ β”‚ β”œβ”€β”¬ elliptic@3.0.3 
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ brorand@1.0.5 
β”‚ β”‚ β”‚ β”‚ └── hash.js@1.0.3 
β”‚ β”‚ β”‚ β”œβ”€β”€ inherits@2.0.1 
β”‚ β”‚ β”‚ └── lodash@3.10.1 
β”‚ β”‚ β”œβ”€β”€ bitcore-mnemonic@1.2.5 
β”‚ β”‚ β”œβ”€β”¬ buffer@4.9.1 
β”‚ β”‚ β”‚ β”œβ”€β”€ base64-js@1.2.0 
β”‚ β”‚ β”‚ └── ieee754@1.1.8 
β”‚ β”‚ β”œβ”€β”¬ elliptic@3.1.0 
β”‚ β”‚ β”‚ β”œβ”€β”€ bn.js@2.2.0 
β”‚ β”‚ β”‚ β”œβ”€β”€ brorand@1.1.0 
β”‚ β”‚ β”‚ └── hash.js@1.0.3 
β”‚ β”‚ β”œβ”€β”€ scrypt-async@1.3.1 
β”‚ β”‚ β”œβ”€β”€ tweetnacl@0.13.2 
β”‚ β”‚ └─┬ web3@0.15.3 
β”‚ β”‚   └── bignumber.js@2.0.7  
β”‚ β”œβ”€β”¬ ethereumjs-tx@1.3.1 
β”‚ β”‚ └── ethereum-common@0.0.18 
β”‚ └─┬ web3-provider-engine@12.2.4 

It looks to me like web3-provider-engine@12.2.4 is the culprit.

It should be reproducible by installing β€œdigix/truffle-lightwallet-provider”: β€œ0.0.12”

and running truffle migrate with truffle.js looking something like this:

const LightWalletProvider = require('@digix/truffle-lightwallet-provider')

module.exports = {
  networks: {
    "development": {
      host: "localhost",
      port: 8545,
      network_id: "*",
    },
    "ropsten": {
      provider: new LightWalletProvider({
        keystore: './sigmate-v3-ti.json',
        password: global.lightWalletPassword,
        rpcUrl: 'https://ropsten.infura.io',
        debug: true,
        pollingInterval: 2000 
      }),
      network_id: '*',
    },
  }
};

I believe digix/truffle-lightwallet-provider is loading web3-provider-engine@12.2.4 and causing my build to fail 😠

Is there anything I can do to resolve this?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
danfinlaycommented, Jun 14, 2017

Was fixed on eth-block-tracker this morning: https://github.com/MetaMask/eth-block-tracker/issues/22

0reactions
OR13commented, Jun 14, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

eth-block-tracker - npm
This module walks the Ethereum blockchain, keeping track of the latest block. It uses a web3 provider as a data source and will...
Read more >
How do I resolve "Cannot find module" error using Node.js?
Using npm install installs the module into the current directory only (in a subdirectory called node_modules ). Is app.js located underΒ ...
Read more >
Error: Cannot find module 'create-hash' - OpenZeppelin Forum
I got rid of the problem by deleting my node_modules folder and npm reinstalling them. The oz commands then worked as they should...
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
In my case, I got it like this "Module not found: Error: Can't resolve 'react-icons/fa' in 'C:\Users\user\Desktop\Projects\Address Locator\Β ...
Read more >
[Solution] Error: Cannot Find Module "nodemailer" - Courier
This is a common Nodemailer error -- get the solution for Error: Cannot Find Module "nodemailer".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found