EatTheBlocks Forum

I keep getting the same Error Code

PS C:\Users\Syrus\profitable-flashloans> node run-arbitrage.js
internal/modules/cjs/loader.js:883
throw err;
^

Error: Cannot find module ‘@ethersproject/solidity’
Require stack:

  • C:\Users\Syrus\profitable-flashloans\node_modules@uniswap\sdk\dist\sdk.cjs.development.js
  • C:\Users\Syrus\profitable-flashloans\node_modules@uniswap\sdk\dist\index.js
  • C:\Users\Syrus\profitable-flashloans\run-arbitrage.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object. (C:\Users\Syrus\profitable-flashloans\node_modules@uniswap\sdk\dist\sdk.cjs.development.js:14:16)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object. (C:\Users\Syrus\profitable-flashloans\node_modules@uniswap\sdk\dist\index.js:7:20)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14) {
    code: ‘MODULE_NOT_FOUND’,
    requireStack: [
    ‘C:\Users\Syrus\profitable-flashloans\node_modules\@uniswap\sdk\dist\sdk.cjs.development.js’,
    ‘C:\Users\Syrus\profitable-flashloans\node_modules\@uniswap\sdk\dist\index.js’,
    ‘C:\Users\Syrus\profitable-flashloans\run-arbitrage.js’
    ]
    }
    Why do i keep getting the error ? I ran ‘node run-arbitrage.js’ before but this keeps popping up