Since yesterday, running shopify app dev and shopify app deploy in a theme app extension results in Error while updating drafts: [snippets/snippet-1.liquid] Liquid syntax error: Cannot use render tag in app snippets.
This occurs on code that was working fine in previous deployments and has not changed since. The code in snippet-1.liquid used to render snippet-2.liquid as such:
So from digging into this, it does seem that it’s a known limitation that theme app extensions don’t allow nested rendering of snippets - was this possible for you previously?
you can call a snippet within a snippet using render but you cant state snippets/snippet-1.liquid when doing a render.
Syntax Errors or Theme Misconfigurations: Ensure that the snippet names are correct and do not include the .liquid extension when using {% render %}. For example, {% render ‘child-snippet’ %} is correct, while {% render ‘child-snippet.liquid’ %} will cause an error.