Shopify CLI for theme development - Preview your theme link is NOT the dev theme

HI.

After running

shopify theme dev

The generated “Preview your theme” link seems to be linked to the live store, not the local dev theme. Whereas the “Customize your theme at the theme editor” link works fine. If I make changes in the local theme editor, they are not reflected in the "http://127.0.0.1:9292" preview link. I have only been getting this problem since yesterday. I seem to have lost hot reload suddenly too. The only way I can preview my local theme is by creating a theme preview link and viewing that. I have tried running shopify theme dev on a different port, and have also rebooted several times. Any ideas?

5 Likes

Having the same problem.

Any news on this?

Same here, any updates?

I’m also experiencing this issue! Using CLI version 3.58.2

Hey folks! If you are having issues with the Shopify platform of this nature please make sure you are connecting with our partner support team through your partner dash. We’re happy to look into this more.

I’ve encountered the same problem.

How did you resolve it?

Has anyone found a solution to this problem?

I just faced this same problem and solved it simply by clearing the local cache from my browser. Go to the DevTools window > Application > “Clear site data”.

Same is this issue: https://community.shopify.com/c/technical-q-a/why-isn-t-my-local-shopify-theme-dev-rendering-changes/m-p/2562335#M157514

And here: https://github.com/Shopify/cli/issues/3466