[ISSUE]Dev server stops serving extension assets after file changes

Hi everyone,

I’m experiencing a recurring issue while running shopify app dev for a Theme App Extension.

Everything loads correctly when I first start the dev server — the extension assets are served from the expected CDN path, for example:

extensions/019a7bf8-0a97-7644-9046-dc5c23f7cf6e/dev-bcdeff52-a495-491a-9bb8-e2af78c09fb6/assets

But the moment I update any file inside the extension directory(Function extension, web pixel etc), the assets from cdn.shopify.com suddenly disappear. Sometimes the entire CDN folder itself gets regenerated with a new ID, and the previous path becomes invalid.

After that, my browser throws errors like:

(index):2740 GET https://cdn.shopify.com/extensions/019a8160-2862-77d5-bd64-0ee72f707eaa/dev-9adca097-0d95-46b9-a5fe-1f0710109ab6/assets/dealeasy-widgets.esm.js 
net::ERR_ABORTED 404 (Not Found)

The only way to fix this is to restart the dev server completely, which is becoming extremely time-consuming.

What I’ve already tried

  • Tested on Shopify CLI v3.84 and on latest one too

  • Tried with multiple tech stacks: Vite, Remix, and Next.js — same issue everywhere

  • Tried different API versions: 2025-04, 2025-07, 2025-10

  • Issue persists across all combination

Question

Has anyone else run into this issue?
Is this a known problem with the current CLI/dev server?
Is there any workaround to stop the CDN extension folder from resetting or disappearing after each file change?

Thank you in advance

3 Likes

Yes. I also get the same error. We can’t do live changes in dev. Once changed, the error occurs.

2 Likes

We released a new CLI version, please try with Shopify CLI 3.87.4

Hi @Isaac-Shopify , thank you for your response. I’ve already tested this with the latest Shopify CLI, including version 3.87.4, and rechecked it again now. The same issue persists — live updates are not reflecting, and the extension assets on cdn.shopify.com disappear after making changes in the extension folder.

I appreciate your insights on this and look forward to your response.

I’ve also tried multiple combinations of Shopify CLI, API versions, and Node versions. In addition, I tested across different stacks including Remix, Next.js, and Vite. The issue still persists in all scenarios.

It would be great if you could help us with this. @Isaac-Shopify

We’ve been facing the same issue for the last few weeks. We’re on the latest shopify/cli version. Same issue, with cdn.shopify.com returning 404 for assets that the theme expects to be there, but they aren’t.

We’ve tried a bunch of workarounds, but there’s no real bandaid even. It’s a huge productivity hit when working on storefront, as extensions constantly stop working on development stores and the only thing you can do is re-deploy them with the hope that they’ll work. But then 10 minutes later they break again.

Please do not ping users (like Liam) that aren’t a part of this thread. This could result in your removal from the forum as it goes against our Code of Conduct.


Now for the issue at hand: I’ve tried with with 3.87.4 and haven’t been able to replicate. My steps look like this:

  1. Run shopify app dev
  2. Ensure my theme app extension is installed on the shop and added to the theme
  3. Ensure that the extension is working correctly (all assets load, etc)
  4. Make modifications to the extension (I’ve changed Liquid code, JavaScript, styles, etc)

After those steps I have not seen any breakage. Is there a minimal reproducible app code you could share where you’re experiencing this?

We’re experiencing this same issue with 3.88.1. Has there been any resolution here?

Still looking for somebody to provide us with a minimal reproducible setup, unfortunately. We’ve been unable to replicate.

Noted! Can you DM me?