I started working on an app using the new theme app extensions and noticed some weird behaviour with different templates.
The documentation at https://shopify.dev/apps/online-store/theme-app-extensions/extensions-framework#:~:text=No-,template... states the following:
"The possible values are product, collection, article, and blog."
However, using other templates such as index or page seems to work and Shopify CLI also gives this error if an incorrect template is included:
Invalid tag 'schema': templates: must be one of 404, cart, checkpoint, gift_card, list-collections, password, queue, search, customers/account, customers/activate_account, customers/addresses, customers/login, customers/order, customers/register, customers/reset_password, article, blog, collection, page, product, index
Is there a way to get theme app extensions working on specific custom templates currently, or is this a bug?
I got this working correctly by loading the styles and JS with link and script tags. Only loading them through the schema doesn't work correctly.
I just encountered this as well. This is a pretty big bug that completely breaks the app-block mechanics on custom templates.
Any Shopify employee available to let us know if this is known and being fixed?
I haven't run into this specifically, but I'm seeing some other weird behavior with theme app extensions, that contradicts documentation. I won't get into the details here because I don't want to derail your thread on the specific issue you're experiencing. Suffice it to say that app blocks still seem sort of buggy and not ready for prime time 😞