Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't unlink old store from my Theme configuration #5019

Closed
MigHerCas opened this issue Dec 4, 2024 · 6 comments
Closed

Can't unlink old store from my Theme configuration #5019

MigHerCas opened this issue Dec 4, 2024 · 6 comments

Comments

@MigHerCas
Copy link

MigHerCas commented Dec 4, 2024

I've been having this issue for days and it blocks my daily work basis.

I'm not authorized anymore to edit, list, or remove a theme that belongs to an old store to (which I don't have access anymore - managed by a client)

shopify theme info

THEME CONFIGURATION
Store                  {theirID}-2.myshopify.com
Development Theme ID   Not set

TOOLING AND SYSTEM
Shopify CLI    3.71.1 
OS             darwin-arm64
Shell          /bin/zsh
Node version   v23.3.0

This blocks me when running shopify app dev on my current project, which has a theme extension.

Image

Image

Can someone help me or point me where I should be able to ask for help? I need to unlink this specific store from my current cli config.

When I try to uninstalled & installed it again, via homebrew and npm global, it does not work. Pulling other themes is not an issue.

@MigHerCas MigHerCas changed the title Can't unlink old theme from my Theme configuration Can't unlink old store from my Theme configuration Dec 4, 2024
@isaacroldan
Copy link
Contributor

Hi @MigHerCas, seems like you need to select a different store for testing?

Just run shopify app dev --reset and that will force you to re-link your app and select a new store. Be sure to select the same app and a different store.

Let me know if that works

@MigHerCas
Copy link
Author

MigHerCas commented Dec 4, 2024

Hi @isaacroldan. Thanks for your answer. Yes, indeed, adding --reset allows me to go through but it's not a total reset.

╰─ shopify theme info

THEME CONFIGURATION
Store                  2280cd-2.myshopify.com
Development Theme ID   Not set

Still shows the same store which eventually leads to the same error. I'm trying to understand where is this data stored and how can I remove it permanently.

It also prevents me from using shopify cli as usual:

Image

@isaacroldan
Copy link
Contributor

Yes, shopify app and shopify theme commands cache their config in different places.
You can select a new store for theme commands by using shopify theme dev --store <your_store>

@MigHerCas
Copy link
Author

MigHerCas commented Dec 4, 2024

And can I remove that theme from cache permanently without being authenticated?

@isaacroldan
Copy link
Contributor

Yes, the cache is stored in your OS configs cache folder, for mac that is /Users/<your_user>/Library/Preferences/shopify-cli-theme-conf-nodejs/config.json. For other OSes I don't know the exact path, sorry.

@MigHerCas
Copy link
Author

Te amo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants