Liquid, JavaScript, themes, sales channels
I am just learning how the Shopify CLI works and am just following the docs right now. Whenever I run `shopify theme dev --store {my-store}`, I am able to log in successfully but then get an error saying `invalid_target`.
I can't find any info on this error in the documentation, and have tried the login process on both Firefox and Chrome browsers. Has anyone been able to resolve this issue successfully?
HI @bcrave, Can you please share a screenshot or something so that I can take a better look at the issue.
I've had the same problem since yesterday.
I upgraded the Shopify CLI version from 3.22.1 to 3.23.0 and downgraded to the stable Node version, but it still did not work.
https://www.youtube.com/watch?v=YM0XOa2LZSs
Maybe this video can help you in any way
Thanks for the video but the error is occurring after this screen:
Yep. I'm noticing the same problem....I have particularly noticed that people who are using the
shopify theme pull --store {your-store-name.myshopify.com}.
I finally got it to work. I was using the store name instead of store URL. This is what worked for me:
shopify theme dev --store=https://my_store.myshopify.com
The docs are confusing if you're a designer and the --store flag seems to be written different ways depending on the page with respect to the store URL. Shopify needs to do better at catering to us lowly designers!
To fix, remove the {} from the command like this...
shopify theme pull --store https://yourstore.myshopify.com
NOT this (as written in some of the docs)...
shopify theme pull --store {yourstore.myshopify.com}
I tried it, but it didn't work, I still get invalid_target. I would appreciate any help!
Is there any update on this thread? I've been trying to fix this all morning but not had any luck yet. Still getting an 'invalid_target' error when trying to develop my theme
I think you should to create a store on your account first.
1. Go https://www.shopify.com/blog/start-online-store
2. Click to "Start free trial" button then follow the guide
3. Back to terminal and re-try the command
After spending hours to find the solution here is what you would need to type in the terminal to login and serve the theme. You will have to login first to your theme and know the store name. In below image I have pointed to the URL for the store name. You will get this URL after logging into the store.
Then run the following in the console:
shopify theme dev --store b5d80a-2
Note: Change b5d80a-2 to your own store name
Thank you
Yep, this worked for me.
Thank you soooooo much!
This was driving me crazy, the store had been renamed so it was the original name that I needed all along to pull the theme file — before this, I was stumbling down many rabbit holes, so Kudos to you 😊
User | RANK |
---|---|
24 | |
21 | |
9 | |
6 | |
5 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023