Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'babel-register' #1932

Open
zendevil opened this issue Oct 2, 2021 · 1 comment
Open

Error: Cannot find module 'babel-register' #1932

zendevil opened this issue Oct 2, 2021 · 1 comment

Comments

@zendevil
Copy link

zendevil commented Oct 2, 2021

I'm running npm run truffle-migrate inside the contracts directory. But I'm getting:

Error: Cannot find module 'babel-register'
Require stack:
- /Users/prikshetsharma/Desktop/audius-protocol-master/contracts/truffle-config.js
- /Users/prikshetsharma/Desktop/audius-protocol-master/contracts/node_modules/original-require/index.js
- /Users/prikshetsharma/Desktop/audius-protocol-master/contracts/node_modules/truffle/build/cli.bundled.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.<anonymous> (/Users/prikshetsharma/Desktop/audius-protocol-master/contracts/truffle-config.js:8:1)
    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 Object.require (internal/modules/cjs/helpers.js:88:18)
    at Function.load (/Users/prikshetsharma/Desktop/audius-protocol-master/contracts/node_modules/truffle/build/webpack:/packages/config/dist/index.js:145:1)
    at Function.detect (/Users/prikshetsharma/Desktop/audius-protocol-master/contracts/node_modules/truffle/build/webpack:/packages/config/dist/index.js:134:1)
    at Object.run (/Users/prikshetsharma/Desktop/audius-protocol-master/contracts/node_modules/truffle/build/webpack:/packages/core/lib/commands/compile.js:53:1)
    at Command.run (/Users/prikshetsharma/Desktop/audius-protocol-master/contracts/node_modules/truffle/build/webpack:/packages/core/lib/command.js:136:1)
    at Object.<anonymous> (/Users/prikshetsharma/Desktop/audius-protocol-master/contracts/node_modules/truffle/build/webpack:/packages/core/cli.js:52:1)
    at __webpack_require__ (/Users/prikshetsharma/Desktop/audius-protocol-master/contracts/node_modules/truffle/build/webpack:/webpack/bootstrap d3abaec0ba5c4953076d:19:1)
    at /Users/prikshetsharma/Desktop/audius-protocol-master/contracts/node_modules/truffle/build/webpack:/webpack/bootstrap d3abaec0ba5c4953076d:65:1
    at Object.<anonymous> (/Users/prikshetsharma/Desktop/audius-protocol-master/contracts/node_modules/truffle/build/cli.bundled.js:71:10)
    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)

How to fix this?

@CarlosGomezescobar
Copy link

Proposed solutions to the issue:

  1. Remigrate all data from the previous contract to the latest contract using the migration tool provided by Audius-Protocol.

2: Manually correct the discrepancy in the storage tables between the previous and latest contracts.

If the first method does not solve the problem, it is recommended to try the second solution with the help of Audius-Protocol developers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants