Skip to content

Commit

Permalink
Revert "Revert "fix module stellar-sdk not found"" (#98)
Browse files Browse the repository at this point in the history
This reverts commit 14c5d41.
  • Loading branch information
yoozo authored Jan 15, 2025
1 parent e6c5c10 commit 9cbb97b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/node/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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: [],
Expand Down

0 comments on commit 9cbb97b

Please sign in to comment.