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: Module not found #167

Closed
tpmmthomas opened this issue Mar 15, 2022 · 7 comments
Closed

Error: Module not found #167

tpmmthomas opened this issue Mar 15, 2022 · 7 comments

Comments

@tpmmthomas
Copy link
Contributor

Hi, I am trying to become an operator of restake but I am not able to run the docker image successsfully.
I already have latest docker and docker-compose installed on an Ubuntu machine.
When I run sudo docker-compose run --rm app npm run autostake, the following error occurs:

`

restake@0.1.0 autostake
node scripts/autostake.mjs

node:internal/errors:465
ErrorCaptureStackTrace(err);
^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@cosmjs/proto-signing' imported from /usr/src/app/scripts/autostake.mjs
at new NodeError (node:internal/errors:372:5)
at packageResolve (node:internal/modules/esm/resolve:907:9)
at moduleResolve (node:internal/modules/esm/resolve:956:20)
at defaultResolve (node:internal/modules/esm/resolve:1172:11)
at ESMLoader.resolve (node:internal/modules/esm/loader:580:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18)
at ModuleWrap. (node:internal/modules/esm/module_job:80:40)
at link (node:internal/modules/esm/module_job:78:36) {
code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v17.7.1
ERROR: 1
`
May I know how to resolve this problem? Thank you.

@iprouteth0
Copy link
Contributor

I can confirm this, I get the same result

Screenshot_20220314-233145-305

@tombeynon
Copy link
Contributor

If you run docker-compose build does that resolve it?

@tpmmthomas
Copy link
Contributor Author

tpmmthomas commented Mar 15, 2022

No, I tried running sudo docker-compose build before sudo docker-compose run ..., still fails.

@tombeynon
Copy link
Contributor

Thanks I'm looking at this now

@chleeab
Copy link
Contributor

chleeab commented Mar 15, 2022

Same here. Thanks for looking at this

@chleeab
Copy link
Contributor

chleeab commented Mar 15, 2022

I get it work by installing the module manually then re-run docker-compose

@tombeynon
Copy link
Contributor

This should now be fixed in master.

git pull
docker-compose build --no-cache

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

4 participants