# Inalid target

**URL:** <https://community.shopify.com/t/inalid-target/338661>\
**Category:** Store Design\
**Tags:** liquid, troubleshooting\
**Created:** [July 11, 2024, 10:07am UTC](https://community.shopify.com/t/inalid-target/338661 "2024-07-11T10:07:02Z")\
**Posts on this page:** 7\
**Page:** 1

## AI-generated summary

Main issue: Running a Shopify theme triggers an “invalid target” error. A screenshot was shared, and later a video was provided showing a different error after a partial workaround.

Actions tried and suggestions:
- Logout/login via “shopify auth logout” and sign in with the correct account. Tried on another device and account; issue persists.
- Start dev server using the store name without “.com” (e.g., “shopify theme dev --s advaknead”) and ensure the account has permissions. Also suggested “npm install -g @Shopify_77 /cli” and a system restart; no change.
- Logging in with store.myshopify.com succeeded, but produced a new, “scary” error; a video link was shared to demonstrate it (video is central to understanding the new failure).
- Reinstall the Shopify CLI or update gems (Ruby packages). Attempted, but the same error remains.

Status: Unresolved. The root cause of “invalid target” and the subsequent error is still unclear.

Open items: Need concrete CLI error logs (from the video/terminal), exact Shopify CLI version, theme environment details, and permission verification to proceed with diagnosis.

<div class="post-metadata">

**Author:** ![MohammadAL](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@MohammadAL](https://community.shopify.com/u/MohammadAL)\
**Post date:** [July 11, 2024, 10:07am UTC](https://community.shopify.com/t/inalid-target/338661/1 "2024-07-11T10:07:02Z")

</div>

Hello, I am getting invalid target when i try to run my theme

 ![MohammadAL_0-1720692384165.png](https://canada1.discourse-cdn.com/shopifyforum/original/3X/f/0/f0f84c52bc4a329471a872f9b6187f166a8c4149.png)

---

<div class="post-metadata">

**Author:** ![lynth](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/lynth/32/410150_2.png) [@lynth](https://community.shopify.com/u/lynth)\
**Post date:** [July 11, 2024, 10:57am UTC](https://community.shopify.com/t/inalid-target/338661/2 "2024-07-11T10:57:26Z")

</div>

Hi, try to use _shopify auth logout_ command, and then log in again with the correct account. It should help.

---

<div class="post-metadata">

**Author:** ![MohammadAL](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@MohammadAL](https://community.shopify.com/u/MohammadAL)\
**Post date:** [July 11, 2024, 11:05am UTC](https://community.shopify.com/t/inalid-target/338661/3 "2024-07-11T11:05:48Z")

</div>

tried it, still having the same issue, i even tried on a different device, and even a different account, same issue

---

<div class="post-metadata">

**Author:** ![lynth](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/lynth/32/410150_2.png) [@lynth](https://community.shopify.com/u/lynth)\
**Post date:** [July 11, 2024, 11:15am UTC](https://community.shopify.com/t/inalid-target/338661/4 "2024-07-11T11:15:38Z")

</div>

Try to type your store name without “com”. Just _shopify theme dev --s advaknead_  
Your account should have permits. You can also try_npm install -g @Shopify_77 /cli_and login again. And lastly - restart your system 😄  
It should work.

---

<div class="post-metadata">

**Author:** ![MohammadAL](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@MohammadAL](https://community.shopify.com/u/MohammadAL)\
**Post date:** [July 11, 2024, 11:47am UTC](https://community.shopify.com/t/inalid-target/338661/5 "2024-07-11T11:47:28Z")

</div>

this didn’t wwork, tried to use the [store.myshopify.com](http://store.myshopify.com), and the loggin worked, but got a whole different scary error, here is a video link to the error

[https://files.catbox.moe/n2foys.webm](https://files.catbox.moe/n2foys.webm)

---

<div class="post-metadata">

**Author:** ![lynth](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/lynth/32/410150_2.png) [@lynth](https://community.shopify.com/u/lynth)\
**Post date:** [July 11, 2024, 11:49am UTC](https://community.shopify.com/t/inalid-target/338661/6 "2024-07-11T11:49:25Z")

</div>

Yeah, you should try to reinstall your CLI or update gems.

---

<div class="post-metadata">

**Author:** ![MohammadAL](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@MohammadAL](https://community.shopify.com/u/MohammadAL)\
**Post date:** [July 11, 2024, 12:08pm UTC](https://community.shopify.com/t/inalid-target/338661/7 "2024-07-11T12:08:32Z")

</div>

tried, still the same big error
