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

Cannot find module stellar-sdk when running docker-compose #12

Open
BlaineHeffron opened this issue Dec 17, 2024 · 0 comments
Open

Cannot find module stellar-sdk when running docker-compose #12

BlaineHeffron opened this issue Dec 17, 2024 · 0 comments

Comments

@BlaineHeffron
Copy link

I modified the starter repo to fit my project then when I run npm run dev I get the following error:

subquery-node-1   | 2024-12-17T20:12:34.998Z <worker #0> ERROR Uncaught Exception Error: Cannot find module 'stellar-sdk'
subquery-node-1   | Require stack:
subquery-node-1   | - /usr/local/lib/node_modules/@subql/node-stellar/dist/app.module.js
subquery-node-1   | - /usr/local/lib/node_modules/@subql/node-stellar/dist/init.js
subquery-node-1   | - /usr/local/lib/node_modules/@subql/node-stellar/dist/main.js
subquery-node-1   | - /usr/local/lib/node_modules/@subql/node-stellar/bin/run
subquery-node-1   | /usr/local/lib/node_modules/@subql/node-stellar/node_modules/@subql/node-core/dist/indexer/worker/worker.js:121
subquery-node-1   |     throw e;

The docker config is using image: subquerynetwork/subql-node-stellar:latest.
I noticed that when I was modifying the example I had to change the imports from stellar-sdk to @stellar/stellar-sdk. Perhaps the imports need to be adjusted for the docker image?

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

1 participant