Solved

Why am I receiving a 'storefront_not_found' message when using Hydrogen CLI?

rattlesnakeMT
Shopify Partner
27 2 1

 

I'm trying to execute:

npx shopify hydrogen env pull

But I'm getting:

 The Admin GraphQL API responded unsuccessfully with errors:                                                                                                                                                                                                                                                                                                                                                                                   
│  [                                                                                                                                                                                                                         
│    {                                                                                                                                                                                                                       
│      "message": "storefront_not_found",                                                                                                                                                                                    
│      "locations": [                                                                                                                                                                                                        
│        {                                                                                                                                                                                                                   
│          "line": 3,                                                                                                                                                                                                        
│          "column": 5                                                                                                                                                                                                       
│        }                                                                                                                                                                                                                   
│      ],                                                                                                                                                                                                                    
│      "path": [                                                                                                                                                                                                             
│        "hydrogenStorefront"                                                                                                                                                                                                
│      ]                                                                                                                                                                                                                     
│    }                                                                                                                                                                                                                       
│  ]  

When I do a 'link' it shows that I'm linked to the proper store.

I do have localhost working. Git is has code, and I have a deployment to a 'dev' site. I'm not sure where to declare that storefront value? I feel like I have proper .env on the storefront since the external dev site appears to be working.

 

Hank D
Accepted Solution (1)

rattlesnakeMT
Shopify Partner
27 2 1

This is an accepted solution.

The problem was that I had it linked to an older instance when I first started. I issued ..

h2 link

It asked if I wanted to unlink to the current (old) storefront, then I picked the current one. Warning is gone now.

 

 

 

 

Hank D

View solution in original post

Reply 1 (1)

rattlesnakeMT
Shopify Partner
27 2 1

This is an accepted solution.

The problem was that I had it linked to an older instance when I first started. I issued ..

h2 link

It asked if I wanted to unlink to the current (old) storefront, then I picked the current one. Warning is gone now.

 

 

 

 

Hank D