Hello, I am getting invalid target when i try to run my theme
Topic 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.
Hi, try to use shopify auth logout command, and then log in again with the correct account. It should help.
tried it, still having the same issue, i even tried on a different device, and even a different account, same issue
Try to type your store name without “com”. Just shopify theme dev --s advaknead
Your account should have permits. You can also trynpm install -g @Shopify_77 /cliand login again. And lastly - restart your system ![]()
It should work.
this didn’t wwork, tried to use the store.myshopify.com, and the loggin worked, but got a whole different scary error, here is a video link to the error
Yeah, you should try to reinstall your CLI or update gems.
tried, still the same big error
