Skip to content

Theme selection fails during sy init with "You must select at least 1 theme" errorΒ #45

@WolfGreyDev

Description

@WolfGreyDev

Branch: next

When following the sy init setup flow, selecting an existing theme from the interactive prompt fails with the error:
"You must select at least 1 theme"

test-init-14-04-25 sy init

β”Œβ”€ Syncify ~ 10:50:16
β”‚
β”‚  v1.0.0-unstable.0
β”‚
β”‚  Hello Hacker πŸ‘‹
β”‚
β”‚  Projects require Shopify API Authorization tokens. Store them in a .env file on
β”‚  a per project basis, or for a more secure, file-free option, use the Syncify
β”‚  keychain. The keychain bcrypts tokens on your system and auto-loads them
β”‚  on-demand during development.
β”‚
β”‚  Storage Method:   βž”  env
β”‚  Shopify Domain:   βž”  ****.myshopify.com
β”‚  API Admin Token:  βž”  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
β”‚  Target Storage:   βž”  package.json
β”‚  Theme Targets:    βž”  select
β”‚  Select Themes:    ?

β”‚   You must select at least 1 theme
β”‚
β”‚  βœ” Dawn                        updated 6 months ago
β”œβ”€ βœ” Theme                       updated 7 months ago

Steps to Reproduce

  1. Run sy init
  2. Complete the prompts:
    • Choose env storage method
    • Enter Shopify domain (e.g. store.myshopify.com)
    • Enter valid Admin API token
    • Select package.json for config
  3. At theme selection, attempt to choose any existing theme (hitting enter)
  4. Observe error message

Expected Behavior

Should successfully accept the selected theme and continue initialization.

Potential Fix

It looks like you have a hint to "Press spacebar to select" here but it's not shown as you can see above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    unstableAny issue that relates to the unstable/next branch

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions