Export issue in the generated clients

Open
#2,352 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript, vite

Research direction

No source file or test is named. Reproduce the TypeScript client generation from the hello world tutorial, then consume the generated package in a Vite project and inspect the export warning; done means the generated package can be imported without losing module exports.

Written by the indexing model from the issue text.

Description

bug
What version are you using?

23.4.0

What did you do?

Tried to generate typescript client for my contracts following the hello world tutorial in the docs.

The issue

Upon using those generated packages in my vite project, it shows a warning that goes:

Unable to interop export * from '@stellar/stellar-sdk' in /home/nitishc/progmag/namaskaram/packages/guess_the_number/dist/index.js, this may lose module exports. Please export "@stellar/stellar-sdk" as ESM or use named exports instead, e.g. export { A, B } from "@stellar/stellar-sdk"

Dominant language
Rust
Stars
123
Forks
141
Avg merge
2d 21h
Merged PRs (30d)
17

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stellar/stellar-cli

All issues in stellar/stellar-cli

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.