Skip to content

@stellar/freighter-api is dynamically imported by the wallet store but is not a dependency #1622

Closed

Description

@yusuftomilola

Problem

store/wallet.store.ts does await import('@stellar/freighter-api'), but the package is not listed in frontend/package.json. In a clean install the module cannot be resolved: TypeScript reports a missing module, and the catch in isFreighterAvailable turns the failure into "Freighter wallet not detected", so connecting a wallet can never succeed.

Proposed change

Add @stellar/freighter-api to dependencies, type the import properly, and add a store test with the module mocked for the connected, not-installed and wrong-network cases.

Acceptance criteria

  • npm run type-check and build pass on a clean install.
  • Wallet connect works with the Freighter extension on testnet.

Activity

  1. Abioladory123 commented on Oct 17, 2026

    @Abioladory123

    @Abioladory123 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hello! I’d be happy to contribute to this task.

    I’m comfortable picking up unfamiliar codebases, tracing existing behavior, and making focused changes without disrupting other functionality. I’ll take ownership of the implementation from understanding the requirements through testing and final verification.

    I’d appreciate the opportunity to work on it.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Abioladory123 to this issue.

  2. zakariyaufarida5-wq commented on Oct 17, 2026

    @zakariyaufarida5-wq
    Contributor

    @zakariyaufarida5-wq has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi, i can handle this for you

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @zakariyaufarida5-wq to this issue.

  3. drips-wave commented on Oct 17, 2026

    @drips-wave

    Congratulations, @zakariyaufarida5-wq! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.

    🧑‍💻 @zakariyaufarida5-wq: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  4. grantfox-oss commented on Oct 17, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox!

    @zakariyaufarida5-wq's PR #1690 was approved and merged by @yusuftomilola.

    🏆 @zakariyaufarida5-wq: You earned 40 FoxPoints for this contribution! Your current tier: Builder (1,151 total points). Track your full progress on GrantFox.

    👏 Great work, @zakariyaufarida5-wq! Keep contributing to DistinctCodes.

  5. drips-wave commented on Oct 17, 2026

    @drips-wave

    This issue has been completed by @zakariyaufarida5-wq as part of the Stellar Wave Program's 10th Wave 🥳

    😎 @zakariyaufarida5-wq: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions