Skip to content

create-svelte duplicates app template options. #9231

@jack-weilage

Description

@jack-weilage

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions