Repository navigation
Conversation
- 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`
There was a problem hiding this comment.
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 initworking. - Updates Stellar SDK and wallet-related package references/links to the correct, non-deprecated npm packages.
- Adjusts the shown
vite.config.jsssr.noExternallist to match the newer wallet integration dependencies.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| noExternal: [ | ||
| "@creit.tech/stellar-wallets-kit", | ||
| "@stellar/freighter-api", | ||
| "@lobstrco/signer-extension-api", | ||
| ], |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
@copilot apply changes based on this feedback
There was a problem hiding this comment.
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
Co-authored-by: Copilot <[email protected]>
…e.config.js noExternal Agent-Logs-Url: https://github.com/stellar/stellar-docs/sessions/21453c5b-14cf-4c39-9443-b6d4ce627971 Co-authored-by: kaankacar <[email protected]>
There was a problem hiding this comment.
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.
| 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
@copilot apply changes based on this feedback
There was a problem hiding this comment.
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
…me packages Agent-Logs-Url: https://github.com/stellar/stellar-docs/sessions/0a8e2e4c-cf0b-4e10-a54e-22650c6cd1e2 Co-authored-by: kaankacar <[email protected]>
|
@kaankacar why did you remove the lang designation for some of the package files in favor of just
|
…#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]>

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.