Questions and discussions about using the Shopify CLI and Shopify-built libraries.
I have used the CLI for some time and don't think I'm doing anything incorrectly:
It's as if the templates are showing a cached version - can anyone help?
I've just done another test, using a different store, different theme - and changes I make in the Customizer for this one also do not change.
Update: Even changes made when modifying a liquid file don't show up in the locally served theme, so my issue is not exclusive to Customizer changes.
For instance, if I add a h1 element directly into the theme.liquid before the existing content, nothing gets added despite the sync update in the CLI. When I delete the entire theme.liquid content, it throws the error and un-deleting syncs properly - but none of this, or editing in Customizer, affects the theme preview in any way.
I've had a few hiccups but seem to have a solution:
I'm not sure what was causing this but I needed to follow all steps for each distinct store. And when I swapped back to the first store I did this with, I had to do the git checkouts again to make it editable again..
From reading other people's posts of a similar issue, I believe it might have something to do with an error in json settings. While the solution above can be helpful, the issue returns - but this seems resolved in other branches.
Did you find out what the json settings error was by any chance? I'm having this same issue.
Out of interest, do you use the CLI with different stores / accounts?
Did you find any solution / reported this to the Shopify team?
I'm experiencing a lot of weirdness with the CLI lately... really frustrating
But I am not using the github integration so far
I'm having this same issue now.
Even stranger is that if I do a new theme dev, the very first load will be correct. And then afterwards it goes back to showing the live theme.
It worked a few times initially and then stopped updating, and even reverting a bunch of code it still doesn't come back