diff --git a/packages/node/CHANGELOG.md b/packages/node/CHANGELOG.md index 27a59bc1..a7ab7481 100644 --- a/packages/node/CHANGELOG.md +++ b/packages/node/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- Fix module `stellar-sdk` not found + ## [4.2.0] - 2024-12-17 ### Changed - Update `@subql/node-core` and `@subql/common` dependencies diff --git a/packages/node/src/app.module.ts b/packages/node/src/app.module.ts index 7c64dab7..e46cbf73 100644 --- a/packages/node/src/app.module.ts +++ b/packages/node/src/app.module.ts @@ -12,7 +12,7 @@ import { FetchModule } from './indexer/fetch.module'; // TODO, Alternative approach, ERROR Uncaught Exception Error: Package subpath './package.json' is not defined by "exports" in xxxxx/node_modules/stellar-sdk/package.json const packageJsonPath = path.resolve( - require.resolve('stellar-sdk'), + require.resolve('@stellar/stellar-sdk'), '../../package.json', ); const { version: stellarSdkVersion } = JSON.parse( @@ -31,7 +31,7 @@ const { version: packageVersion } = require('../package.json'); FetchModule, MetaModule.forRoot({ version: packageVersion, - sdkVersion: { name: 'stellar-sdk', version: stellarSdkVersion }, + sdkVersion: { name: '@stellar/stellar-sdk', version: stellarSdkVersion }, }), ], controllers: [],