Shopify app preview doesn't update anymore

Shopify app preview doesn't update anymore

Blazevoir
Shopify Partner
4 0 1

Hi, I'm learning Shopify app development using the Shopify CLI and Remix. I've started some projects, but I can't get the preview to work. Yesterday, after a clean new installation of both the CLI and the App, the preview worked. I could change cards and see the changes just refreshing the site.

 

Today, in that same app project, the preview is frozen as usual. My Shopify version is 3.68.0 (I think it's been release earlier today). I've tried some solutions I've found in other posts like running "npm run deploy" with no results whatsoever.

 

Everything is up to date and I can't find any solutions, even though I'm not the only one having this issue.

 

Anything I might've missed?

 

Thanks in advance,

Miguel.

Replies 7 (7)

hocanemyera
New Member
5 0 0

Check the CLI version(latest version is preferred) and ensure it is configured correctly, If that is good then try checking your code for syntax errors and that the dependencies that are installed are up to date. try "npm install" to see the latest dependencies.

hope it helps.

hussainmyera
Blazevoir
Shopify Partner
4 0 1

Thanks for the reply, but no luck. I think I've chased down the problem:

 

In my App configuration I can see 3 versions (I guess I used "shopify app deploy" three times) and the third one is active. The thing is, the top message says "The active version of the App is not available in dev shops. Deactivate the preview version in the dev shops to make the Active version available in them". If I try to manage those "previews" I'm sadly redirected to the Extension tab, which is empty:

 

Blazevoir_0-1727904117933.png

 

Then again, if I access the active version I get the following message:

 

"Your URLs were updated from the Shopify CLI. A member of you group (im alone) updated the URLs running the 'shopify app dev' command".

Blazevoir_1-1727904283002.png

 

Well yeah, when I want to work in the project I usually do "shopify app dev", and then some URLs I don't really know about are updated? Wouldn't that be the problem? If I try to restore the active version's URLs nothing happens, but I think this is the real problem here. That would explain why the first time I could see the preview and none of the following worked.

 

Let's see if I can be guided here.

 

Thanks in advance!

hocanemyera
New Member
5 0 0

De-activate the preview versions in the dev shops and access the active version and try to restore the URL, since your URLs are not updating , try updating the URLs manually to the original setting.  
also try using "--no-update-urls" flag to the "shopify app dev" command aso it deonst update unnecessarily and try running the preview again.

Hope it solves your issue.

hussainmyera
Blazevoir
Shopify Partner
4 0 1

No luck I'm afraid. If I don't update the URLs, the preview returns a timeout; the URL is not found. The thing is, if I update the URL as usual, both the Partners config and the shopify.app.toml file are updated with the same URL, so it should be synced!

 

I can see the changes if I run dev again with new URLs, but having to do that for every change I make... I'd lose so much time just testing.

 

I'll leave it for now and tomorrow I'll try creating a new project so I can rule out something being outdated.

 

Thanks again.

hocanemyera
New Member
5 0 0

My pleasure, hope you find a suitable solution. Have a good day ahead.

hussainmyera

YOD_Solutions
Shopify Partner
226 23 32

Same issue. It was workign yesterday. It stopped working today. I haven't made any changes.

Founder @ JsRates: Custom Shipping Rates
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more about JsRates visit the JsRates home page or JsRates documentation
- Find JsRates on Shopify app store

Blazevoir
Shopify Partner
4 0 1

Update: I created a brand new app and the preview still doesn't work. Good thing is, it must be some dependencies missing. When i run dev I get a webhook error:

Blazevoir_0-1727964042866.png

 

 

APP_UNINSTALLED is not responding, so maybe when everything is working on startup the preview will work again.

What can I be missing? I upgraded and updated everything I can think of: Node, npm, php, Shopify CLI...

PHP 8.3.6

Shopify version is 3.68.0

npm version is 10.8.2

Node v20.17.0

 

There must be something but I can't find anything in the docs...