Skip to content

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

Closed
kaankacar wants to merge 4 commits into
stellar:mainfrom
kaankacar:2341-example-application-tutorialoverview-broken-setup-instructions-deprecated-commands-wrong-packages
Closed

kaankacar wants to merge 4 commits into
stellar:mainfrom
kaankacar:2341-example-application-tutorialoverview-broken-setup-instructions-deprecated-commands-wrong-packages

Conversation

@kaankacar

Copy link
Copy Markdown
Contributor
  • 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

- 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`
@kaankacar kaankacar self-assigned this Apr 1, 2026
Copilot AI review requested due to automatic review settings April 1, 2026 15:25

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 “Example application tutorial” overview page to reflect newer/renamed Stellar and SvelteKit ecosystem tooling, aiming to prevent breakages caused by deprecated CLIs and package changes.

Changes:

  • Replaces deprecated SvelteKit scaffolding command with npx sv create.
  • Pins Tailwind CSS to v3 and updates Stellar SDK install instructions to @stellar/stellar-sdk plus @stellar/typescript-wallet-sdk-km.
  • Updates Vite SSR noExternal list and replaces the dead js-stellar-wallets reference/link.

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

Comment on lines 195 to +197
```bash npm2yarn
# Stellar SDKs
npm install --save-dev stellar-sdk @stellar/wallet-sdk
npm install --save-dev @stellar/stellar-sdk @stellar/typescript-wallet-sdk-km

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 dependency install instructions here were updated to @stellar/stellar-sdk and @stellar/typescript-wallet-sdk-km, but other pages in this same tutorial still show imports/usage for the old packages (stellar-sdk, @stellar/wallet-sdk) and even refer to the archived js-stellar-wallets SDK. Following the tutorial from this point will likely break later copy/paste snippets unless those pages are updated to the new packages (or this install command is reverted/adjusted to match the rest of the tutorial).

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.

The updated install command is correct, 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.

Comment on lines 196 to 200
# Stellar SDKs
npm install --save-dev stellar-sdk @stellar/wallet-sdk
npm install --save-dev @stellar/stellar-sdk @stellar/typescript-wallet-sdk-km
# We will need some polyfills to make things available client-side
npm install --save-dev @esbuild-plugins/node-globals-polyfill @esbuild-plugins/node-modules-polyfill \
path @rollup/plugin-inject buffer svelte-local-storage-store uuid

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.

These SDKs are used by the running application code, not just during build time. Installing them with --save-dev means a production install that omits devDependencies (common in CI/CD) will fail at runtime/build; prefer installing runtime libraries under dependencies (e.g., use npm install ... without --save-dev) and reserve --save-dev for tooling-only packages.

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.

The BasicPay app is a client-side static app with no server runtime. Everything is bundled by Vite at build time. There is no production npm install --omit=dev step that would leave these packages missing. The actual basicpay repo reflects this: both @stellar/stellar-sdk and @stellar/typescript-wallet-sdk-km are listed under devDependencies in its package.json. The --save-dev flag is intentional here.

2 similar comments
@kaankacar

Copy link
Copy Markdown
Contributor Author

Closing in favor of a new PR from the correct branch (stellar/stellar-docs instead of the fork).

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)

2 participants