cli: [Bug]: theme.css.liquid not syncing
Please confirm that you have:
- Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
- Reproduced the issue in the latest CLI version.
In which of these areas are you experiencing a problem?
Theme
Expected behavior
Changes done in the theme.css.liquid should sync and reflect in the front end.
Actual behavior
Any changes in the theme.css.liquid are not synced. Shopiy CLI shows an update has been made for assets/theme.css.liquid, but they do not show up in the front end.
Changes can be seen in the file when looking directly at the admin file.
My current workaround is to create a new .css file (without the .liquid format) to apply styling.
Reproduction steps
- Make changes to theme.css.liquid
- Inspect front-end to see style not updated
Operating System
Mac OS Monterey 12.6.3
Shopify CLI version (check your project’s package.json
if you’re not sure)
3.48.1
Shell
zsh
Node version (run node -v
if you’re not sure)
20.5.0
What language and version are you using in your application?
Liquid, CSS
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 1
- Comments: 21 (4 by maintainers)
+1 here. We’ve noticed since two days ago that the changes made in the .liquid files are not reflecting on the first preview link or the local port. We’re only able to preview the changes under the third preview link.
We’ve attempted to update all related packages to the latest versions ( SHO CLI, node, and ruby) and have restarted both VS Code and the computer, but the issue persists.
👋 Hello everyone,
Yesterday, we applied a platform-level solution for this issue. As a result, it should now be resolved without any need for updates on your local tooling.
Please, let me know if you’re still facing this problem, so we can promptly reopen the issue.
I am experiencing this same issue. Very frustrating as my changes were showing, then out of the blue they stopped showing. It’s showing that files are updating in the cli:
However, the only way I’ve been able to get changes to show is to quit shopify cli and start it again or, to push changes to my published theme via git.
I’m not sure if this is related to the bug reports in this thread, but I’m facing a similar issue with the theme. I’ve opened an issue here: #2697
+1 Here. .js.liquid file is not getting updated
I have the same issue except mine is with a .js.liquid file. It was working fine when it was just .js file but after switching to .js.liquid the changes are not reflecting, although they will appear to correct at some later time 10 minutes or an hour later.