Skip to content

fix(overview): update deprecated commands and wrong packages - #2345

Merged
kaankacar merged 7 commits into
mainfrom
2341-example-application-tutorialoverview-broken-setup-instructions-deprecated-commands-wrong-packages
Apr 6, 2026
Merged

kaankacar merged 7 commits into
mainfrom
2341-example-application-tutorialoverview-broken-setup-instructions-deprecated-commands-wrong-packages

Conversation

@kaankacar

Copy link
Copy Markdown
Contributor

The Overview page of the BasicPay example application tutorial contains several broken setup instructions that cause developers to fail immediately. These stem from two root causes: the BasicPay repo was overhauled in October 2024 (commit `a25cc81`) and the docs were never updated to match, and upstream tools (Svelte CLI, Tailwind CSS) shipped breaking major versions with no version pinning in the tutorial.

Changes

`npx sv create` (was `npm create svelte@latest`)
`create-svelte` is deprecated on npm and outputs a deprecation message instead of scaffolding. The replacement CLI is `sv`.

`tailwindcss@^3` pin
The tutorial installs `tailwindcss` without a version pin. Tailwind v4 (now the default) removed the `init` command entirely, breaking `npx tailwindcss init -p`. The BasicPay repo itself uses `^3.4.13`; the pin makes this explicit.

`@stellar/stellar-sdk` (was `stellar-sdk`)
`stellar-sdk` carries an npm deprecation warning pointing to `@stellar/stellar-sdk`. All prose references and links updated to use the npm package name.

`@stellar/typescript-wallet-sdk-km` (was `@stellar/wallet-sdk`)
`@stellar/wallet-sdk` is the wrong package — different API surface, last updated January 2024. The BasicPay repo uses `@stellar/typescript-wallet-sdk-km` (currently v2.0.0).

`vite.config.js` `noExternal` entries
Updated from `["@stellar/wallet-sdk", "@albedo-link/intent"]` to the packages the BasicPay repo actually ships after the October 2024 update: `@creit.tech/stellar-wallets-kit`, `@stellar/freighter-api`, `@lobstrco/signer-extension-api`. Albedo integration was dropped in that same update in favor of `@creit.tech/stellar-wallets-kit`.

Dead `js-stellar-wallets` reference
`js-stellar-wallets` does not exist on npm and links to an archived GitHub repo. Updated all references to `@stellar/typescript-wallet-sdk-km` pointing to npm.

File changed

`docs/build/apps/example-application-tutorial/overview.mdx`

Follow-up

The other tutorial pages (Account Creation, Querying Data, SEP-1, SEP-10) still reference the old packages and will be fixed in follow-up PRs.

- Replace `npm create svelte@latest` with `npx sv create` (create-svelte is deprecated)
- Pin tailwindcss to v3 to prevent breakage with v4 (init -p was removed in v4)
- Replace deprecated `stellar-sdk` with `@stellar/stellar-sdk`
- Replace `@stellar/wallet-sdk` with `@stellar/typescript-wallet-sdk-km` (wrong package, different API)
- Update vite.config.js noExternal to reflect packages from basicpay a25cc81 (Oct 2024)
- Replace dead `js-stellar-wallets` reference (archived repo, not on npm) with `@stellar/typescript-wallet-sdk-km`
Copilot AI review requested due to automatic review settings April 1, 2026 16:42
@kaankacar kaankacar self-assigned this Apr 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the BasicPay example application tutorial “Overview” page to align setup instructions with current upstream tooling and the post–Oct 2024 BasicPay dependency stack, preventing immediate failures during project scaffolding and installation.

Changes:

  • Replaces deprecated Svelte scaffolding command and pins Tailwind CSS to v3 to keep tailwindcss init working.
  • Updates Stellar SDK and wallet-related package references/links to the correct, non-deprecated npm packages.
  • Adjusts the shown vite.config.js ssr.noExternal list to match the newer wallet integration dependencies.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +251 to +255
noExternal: [
"@creit.tech/stellar-wallets-kit",
"@stellar/freighter-api",
"@lobstrco/signer-extension-api",
],

Copilot AI Apr 1, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Vite config snippet sets ssr.noExternal for @creit.tech/stellar-wallets-kit, @stellar/freighter-api, and @lobstrco/signer-extension-api, but this page never instructs the reader to install these packages (the only Stellar deps installed above are @stellar/stellar-sdk and @stellar/typescript-wallet-sdk-km). As written, the tutorial is incomplete/confusing—either add an install step for these packages or clarify/remove the noExternal entries if they’re not required for the tutorial at this stage.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot apply changes based on this feedback

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added an install step for all three packages (@creit.tech/stellar-wallets-kit, @stellar/freighter-api, @lobstrco/signer-extension-api) in the Stellar dependencies section, so the vite.config.js ssr.noExternal entries are now consistent with what's being installed. Commit: a8dfd2d

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 89 to 92
cd my-basic-payment-app
npm install --save-dev svelte-preprocess tailwindcss autoprefixer postcss @sveltejs/adapter-static \
npm install --save-dev svelte-preprocess tailwindcss@^3 autoprefixer postcss @sveltejs/adapter-static \
@tailwindcss/typography \
daisyui svelte-feather-icons

Copilot AI Apr 1, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Tailwind install line pins to tailwindcss@^3, but the PR description says the BasicPay repo uses ^3.4.13 and that this change makes that explicit. Please align the doc with the stated version (or update the PR description) so readers install the same Tailwind minor version as the reference repo.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot apply changes based on this feedback

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pinned to tailwindcss@^3.4.13 to match the BasicPay repo. Also changed @stellar/stellar-sdk, @stellar/typescript-wallet-sdk-km, and the wallet integration packages from --save-dev to regular npm install since they are runtime dependencies. Commit: 36ca253

1 similar comment
@kaankacar
kaankacar merged commit 8a90e7d into main Apr 6, 2026
9 checks passed
@kaankacar
kaankacar deleted the 2341-example-application-tutorialoverview-broken-setup-instructions-deprecated-commands-wrong-packages branch April 6, 2026 15:56
@JFWooten4

Copy link
Copy Markdown
Contributor

@kaankacar why did you remove the lang designation for some of the package files in favor of just @stellar? Ex:

Your changes

zachfedor pushed a commit to zachfedor/stellar-docs that referenced this pull request Jun 18, 2026
…#2345)

* fix(overview): update deprecated commands and wrong packages

- Replace `npm create svelte@latest` with `npx sv create` (create-svelte is deprecated)
- Pin tailwindcss to v3 to prevent breakage with v4 (init -p was removed in v4)
- Replace deprecated `stellar-sdk` with `@stellar/stellar-sdk`
- Replace `@stellar/wallet-sdk` with `@stellar/typescript-wallet-sdk-km` (wrong package, different API)
- Update vite.config.js noExternal to reflect packages from basicpay a25cc81 (Oct 2024)
- Replace dead `js-stellar-wallets` reference (archived repo, not on npm) with `@stellar/typescript-wallet-sdk-km`

* fix(overview): replace js-stellar-sdk references with @stellar/stellar-sdk

* fix(overview): point @stellar/stellar-sdk link to npm

* fix(overview): point @stellar/typescript-wallet-sdk-km link to npm

* Update docs/build/apps/example-application-tutorial/overview.mdx

Co-authored-by: Copilot <[email protected]>

* fix(overview): add install step for wallet packages referenced in vite.config.js noExternal

Agent-Logs-Url: https://github.com/stellar/stellar-docs/sessions/21453c5b-14cf-4c39-9443-b6d4ce627971

Co-authored-by: kaankacar <[email protected]>

* fix(overview): pin tailwind to ^3.4.13 and use regular deps for runtime packages

Agent-Logs-Url: https://github.com/stellar/stellar-docs/sessions/0a8e2e4c-cf0b-4e10-a54e-22650c6cd1e2

Co-authored-by: kaankacar <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
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

Successfully merging this pull request may close these issues.

example-application-tutorial/overview: broken setup instructions (deprecated commands, wrong packages)

5 participants