Hi! I have a basic app with a small theme extension, and I want to change a JavaScript function and redeploy it, but the changes are not showing up on the store. Here’s what I’ve tried so far:
Updated Shopify CLI
Changed the theme
Turned off preview development mode
Ran shopify app deploy multiple times
Tested on development URLs
Ran npm run build
Clear cache
Ran npm run dev & npm run deploy
The app is hosted on a VPS and works fine. I just realized I need to modify a function inside the theme extension.
Can you confirm that your latest app version (with the theme extension changes) was pushed to to the store?
If you’re using Shopify CLI, a quick check with “app versions list” and ensuring the newest version is “Released” helps rule out unreleased drafts.
Since you mentioned switching themes, is the app embed/block enabled on the currently active theme and on the exact template(s) you’re testing? How is your JS referenced, would this be via the extension schema’s javascript field (served from Shopify’s CDN) or a hard-coded/remote URL?
If you’re also able to confirm your build outputs the updated file into extensions//assets, since files outside that folder won’t be deployed that would be super helpful as well!
Lastly, in your browser’s Network tab (with cache disabled), can you open the loaded script and verify your latest changes (a temporary console.log version tag works well)? If you see any console errors (especially hydration mismatches like @MassTechnologist mentioned) and are you using a framework (React/Vue) inside the block, if you can share those errors here that would be super helpful as well if the issue is persisting.
Hope to hear from you soon, happy to help look into this