App reviews, troubleshooting, and recommendations
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.
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.
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:
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".
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!
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.
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.
My pleasure, hope you find a suitable solution. Have a good day ahead.
Same issue. It was workign yesterday. It stopped working today. I haven't made any changes.
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:
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...
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024