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.

Can't generate Theme App Extension

Can't generate Theme App Extension

WeNexus
Shopify Partner
5 0 3
Hi, I'm building a Shopify App using Remix, I've created one Theme App Extension so far which is an App Block, and now I'm trying to generate an App Embed Block but when I run
 
shopify app generate extension
I can't select Theme App Extension, it says "limit reached", why I'm am not able to generate another Theme App Extension?
 
Screenshot from 2023-11-03 12-39-30.png

 

Replies 16 (16)

Liam
Community Manager
3108 344 899

Hi WeNexus,

 

Do you already have other theme app extensions associated with this app project?

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

WeNexus
Shopify Partner
5 0 3
Yes Liam,
Liam
Community Manager
3108 344 899

How many extentions are currently associated with this app, and are you hitting any of the limits outlined in our docs

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

WeNexus
Shopify Partner
5 0 3

@Liam, there is only one app block under "online store > Theme extension." 

 

Also, We're not hitting any limits outlined in your doc : https://shopify.dev/docs/apps/online-store/theme-app-extensions/extensions-framework#file-and-conten...

WeNexus
Shopify Partner
5 0 3

@Liam Yes. We finished a theme extension."Trust Badge app block," and want to make another. When we went to do it, it showed this error:  Online Store > "Theme extension limit reached."

 
Can you help me understand why it happened... as far as I know, many apps are making 40+ promotional theme extensions (e.g.: Vitals app); when we're going to make then, why its showing limitations...
Liam
Community Manager
3108 344 899

That is strange if it's just one existing block so far and you're looking to add a second. How large are the Liquid files for the first block?

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

delyanpeev
Shopify Partner
8 1 6

I've just stumbled upon the same. I am not hitting any limits and I have only 1 app block extension currently with merely 20 lines of code. Is this a bug and how can it be worked around?

yehudit
Shopify Partner
3 0 0

I'm experiencing the same issue. I've only created a small theme extension, and now I can't add another one. Hoping for a solution soon!

NickShi
Shopify Partner
26 3 4

Same situation, already just have one extension(simple, and folder size just only 40KB), when create secondary extension then the option that "Create Theme extension" is disable.

- If helpful then please Likes and make it as a Solution.
- If you want to develop a store/app, or need custom software development services Email Me
Fabian_Martinez
Shopify Partner
9 0 2

Hi, same here. I have an app with the "product rating" block extension which has 2 files and 10 lines of code only and I want to create another block extension but says "limit reached". Any solution?

Sahood
Shopify Partner
6 0 1

I am still encountering the same issue. Has anyone found any solutions or fixes?

delyanpeev
Shopify Partner
8 1 6

You can only have one extension, but you can have multiple .liquid files inside:

delyanpeev_0-1705581813486.png

 

hsdonkin
Shopify Partner
19 1 8

For anyone looking, this is the correct answer 👍

Sahood
Shopify Partner
6 0 1

What if someone needs to use the two or three different targets (sectionheadbody).
How much lines of code can help to do that using one theme-app-extension?


Please reply if you can help.

leo-hackin
Shopify Partner
4 0 2

Hello @Sahood 🙂

You can duplicate the liquid files with the same schema and uses but on each file select different targets. 🙂 
It's will be like a trigger.liquid with a target section and a trigger_embed.liquid to the embed body for example.

To avoid duplicating code, use liquid includes - https://shopify.dev/docs/api/liquid/tags/include

For me, it's worked like expected. 🙂 Hope that this could help you.

MTurious
Shopify Partner
1 0 0

And now replaced by 

{% render 'filename' %}

 https://shopify.dev/docs/api/liquid/tags/render