sveltejs / kit

web development, streamlined
https://kit.svelte.dev
MIT License
18.44k stars 1.89k forks source link

`create-svelte` duplicates app template options. #9231

Closed jack-weilage closed 1 year ago

jack-weilage commented 1 year ago

Describe the bug

When moving away from the "SvelteKit demo app" option in the create-svelte CLI, the option will duplicate.

Reproduction

  1. Run npm create svelte duplication-repro.
  2. Press down arrow key.
  3. "SvelteKit demo app" option will appear twice. If you move back up and down, it will duplicate again.

Logs

❯ npm create svelte duplication-repro

create-svelte version 3.1.0

┌  Welcome to SvelteKit!
│
◆  Which Svelte app template?
│  ● SvelteKit demo app (A demo app showcasing some of the features of SvelteKit - play a word guessing game that works
│  ● SvelteKit demo app (A demo app showcasing some of the features of SvelteKit - play a word guessing game that works
│  ● SvelteKit demo app (A demo app showcasing some of the features of SvelteKit - play a word guessing game that works
│  ● SvelteKit demo app (A demo app showcasing some of the features of SvelteKit - play a word guessing game that works
│  ● SvelteKit demo app (A demo app showcasing some of the features of SvelteKit - play a word guessing game that works
│  ● SvelteKit demo app (A demo app showcasing some of the features of SvelteKit - play a word guessing game that works
│  ● SvelteKit demo app (A demo app showcasing some of the features of SvelteKit - play a word guessing game that works without JavaScript!)
│  ○ Skeleton project
│  ○ Library project

System Info

System:
    OS: Linux 5.15 Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish)
    CPU: (8) x64 Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz
    Memory: 808.49 MB / 1.86 GB
    Container: Yes
    Shell: 5.8.1 - /usr/bin/zsh
Binaries:
    Node: 19.4.0 - ~/.nvm/versions/node/v19.4.0/bin/node
    npm: 9.3.1 - ~/.nvm/versions/node/v19.4.0/bin/npm
Browsers:
    Chrome: 110.0.5481.100

Severity

annoyance

Additional Information

No response

jack-weilage commented 1 year ago

Looks like clack is already aware of this: https://github.com/natemoo-re/clack/issues/87, but it hasn't been fixed yet.

Antonio-Bennett commented 1 year ago

https://github.com/natemoo-re/clack/issues/87 has now been closed with a PR :)