What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Failed To Render App Block Despite App Installation

Failed To Render App Block Despite App Installation

Ace2002
Shopify Partner
4 0 0

When I reinstall the app, the old app blocks still get rendered in the theme editor.

 

However, in the storefront, I encounter the error "Failed to render app block "id": app block path "shopify://apps/{app_name}/blocks/{file}/{uuid}" does not exist.'" The only workaround is to make any changes to the theme and save it.

 

Can someone help me with this? As per my investigation, I noticed that the information for my extension does not appear in the 'cdn.shopify.com/extensions'  source tab, even though the app has been installed.

Replies 5 (5)

Liam
Community Manager
3108 344 895

Hi Ace,

 

That does sound pretty strange, here's a few things you could try for troubleshooting this:

 

  • Ensure that your theme app extension is correctly configured and your app block path is correctly specified in your app setup.
  • Verify if your app block is correctly referenced in your theme: Check your theme's JSON templates for any potential errors in referencing your app block.
  • Confirm if your app has the correct access scopes: Your app should have the `read_themes` and `write_themes` access scopes to read and write theme templates and assets.

Try the above and let us know if you're still seeing issues,

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Ace2002
Shopify Partner
4 0 0

Thank you so much, Liam, for the feedback.

 

I'm quite confident that I've done everything correctly. The issue might be related to caching because when using an incognito tab, the blocks work fine.

However, about 3-4 hours later, the main tab automatically updates (and my extension reappears in cdn.shopify.com/extensions).

 

This is impacting my customers as the blocks are displayed in the theme editor but not appearing on the storefront.

Ace2002
Shopify Partner
4 0 0

Additionally, I've noticed that the app blocks that were added, along with the configurations of the app embed in the setting_data.json, remain unaffected even after I have uninstalled the app. Is this still in accordance with the standard procedure?

Liam
Community Manager
3108 344 895

Hi again - no the app blocks should be removed automatically when the app is uninstalled. Is this also happening in incognito?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Ace2002
Shopify Partner
4 0 0

The app block is still rendering in the theme editor and incognito tab but not appearing in the main tab. You can view the screenshot I've attached for reference

 

main tab:

maintab.png

 

incogtito tab:

iconictab.png