1

This error happened to me overnight. I'm no longer able to retrieve Decentraland data from the chain. I've attempted to upgrade the dependency in the web3-core-method nodemodule, but to no avail.

From my package.json:

    "web3": "^1.0.0-beta.41"

Here is the full error:

 Error: Cannot find module 'lodash/isString'
[0]     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
[0]     at Function.Module._load (internal/modules/cjs/loader.js:507:25)
[0]     at Module.require (internal/modules/cjs/loader.js:637:17)
[0]     at require (internal/modules/cjs/helpers.js:22:18)
[0]     at Object.<anonymous> (/Users/project/node_modules/web3-core-method/dist/web3-core-method.cjs.js:12:32)
[0]     at Module._compile (internal/modules/cjs/loader.js:689:30)
[0]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
[0]     at Module.load (internal/modules/cjs/loader.js:599:32)
[0]     at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
[0]     at Function.Module._load (internal/modules/cjs/loader.js:530:3)
[0]     at Module.require (internal/modules/cjs/loader.js:637:17)
[0]     at require (internal/modules/cjs/helpers.js:22:18)
[0]     at Object.<anonymous> (/Users/project/node_modules/web3-eth-accounts/dist/web3-eth-accounts.cjs.js:10:22)
[0]     at Module._compile (internal/modules/cjs/loader.js:689:30)
[0]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
[0]     at Module.load (internal/modules/cjs/loader.js:599:32)
  • NPM: 6.4.1
  • Node: 10.14.2
0

1 Answer 1

0

Converting OP's commented solution to an answer:

I fixed this by going into the web3-core-method package.json and adding in lodash as a dependency.
Sm00g15 on Feb 5, 2019 at 1:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.