Pham Thanh Long
Pham Thanh Long

Reputation: 1

"SelectPrompt requires at least one choice" Error

Shopify Hydrogen: Unable to link to existing store during setup

Problem Description

I am trying to create a new Hydrogen storefront and link it to my existing Shopify store. However, after selecting "Link to an existing store" during the setup (npm create @shopify/hydrogen@latest), I get an error related to SelectPrompt requires at least one choice and cannot proceed.

Steps to Reproduce

  1. Ran the following command in my terminal:
    npm create @shopify/hydrogen@latest
    
    
    

How can i fix this error. When run this command, i chosen Link your Shopify account, but i got this error. Please help me

Upvotes: 0

Views: 35

Answers (1)

Joe
Joe

Reputation: 11

Try manually specifying the store URL:

npm create @shopify/hydrogen@latest -- --store=my-store.myshopify.com

Upvotes: 0

Related Questions