Skip to content

JavaScript in Theme App Extension blocks exceeds compressed size threshold (10000 Bytes) #27

Description

@adithwip

Hello Shopify team,
I hope you all have a great day!

I developed a Theme App Extension for a Shopify App with React.
So, the build file is used in the Block liquid file.
But then, when I deploy the app with shopify deploy
There's this message:

 theme_extensions | Running theme check on your Theme app extension...
 theme_extensions | Checking /Users/adith/Documents/work/shopify_app_recipe_frontend/extensions/recipe-ext ...
 theme_extensions | blocks/app-block.liquid:25: suggestion: AssetSizeAppBlockJavaScript: JavaScript in Theme App Extension blocks exceeds compressed size threshold (10000 Bytes).
 theme_extensions |     {% schema %}
 theme_extensions |        ^^^^^^^
 theme_extensions |
 theme_extensions | 3 files inspected, 1 offense detected, 0 offenses auto-correctable

Have I made a mistake by choosing React (with CRA) to build the Theme App Extension frontend, instead of pure Liquid?
I assume my Shopify App as a whole will be rejected by Shopify once I want to publish it.
Any advice?

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions