Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: MissingSchema error for app extension while build Shopify app #5269

Open
2 tasks done
maruffahmed opened this issue Jan 26, 2025 · 1 comment · May be fixed by #5327
Open
2 tasks done

[BUG]: MissingSchema error for app extension while build Shopify app #5269

maruffahmed opened this issue Jan 26, 2025 · 1 comment · May be fixed by #5327
Assignees
Labels
Type: Bug Something isn't working

Comments

@maruffahmed
Copy link

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

Extension

Expected behavior

yarn build should check the theme app extension but shouldn't warn about the MissingSchema for snippets files as snippets files don't support the schema tag.

Actual behavior

When running the shopify app build command, I receive an error that says “[error]: MissingSchema The schema does not exist” and it refers to the liquid file in the snippets directory.
However, it is contradictory because when I add a schema block to the snippet, I get another error that says, “Error while updating drafts: [snippets/text_field.liquid] Liquid syntax error: Unknown tag ‘schema’”.
Matthew_Grist

Verbose output

Verbose output
2025-01-26T10:50:22.251Z: Sync-reading the content of file at extensions/StoreSEO-Meta/snippets/canonical_url.liquid...
2025-01-26T10:50:22.251Z: Sync-reading the content of file at extensions/StoreSEO-Meta/snippets/google_site_verification_meta.liquid...
2025-01-26T10:50:22.251Z: Sync-reading the content of file at extensions/StoreSEO-Meta/snippets/local_seo_article.liquid...
2025-01-26T10:50:22.251Z: Sync-reading the content of file at extensions/StoreSEO-Meta/snippets/local_seo_blogs.liquid...
2025-01-26T10:50:22.251Z: Sync-reading the content of file at extensions/StoreSEO-Meta/snippets/local_seo_collection.liquid...
2025-01-26T10:50:22.251Z: Sync-reading the content of file at extensions/StoreSEO-Meta/snippets/local_seo_local_business.liquid...
2025-01-26T10:50:22.251Z: Sync-reading the content of file at extensions/StoreSEO-Meta/snippets/local_seo_organization.liquid...
2025-01-26T10:50:22.251Z: Sync-reading the content of file at extensions/StoreSEO-Meta/snippets/local_seo_product.liquid...
2025-01-26T10:50:22.251Z: Sync-reading the content of file at extensions/StoreSEO-Meta/snippets/local_seo.liquid...
2025-01-26T10:50:22.251Z: Sync-reading the content of file at extensions/StoreSEO-Meta/snippets/no_follow_no_index.liquid...
2025-01-26T10:50:22.251Z: Sync-reading the content of file at extensions/StoreSEO-Meta/snippets/redirect_out_of_stock.liquid...
2025-01-26T10:50:22.251Z: Sync-reading the content of file at extensions/StoreSEO-Meta/snippets/rich_snippet.liquid...
2025-01-26T10:50:22.251Z: Sync-reading the content of file at extensions/StoreSEO-Meta/snippets/social_media_preview.liquid...
2025-01-26T10:50:22.251Z: Sync-reading the content of file at extensions/StoreSEO-Meta/snippets/local_seo_brea            storeseo-meta │
          storeseo-meta │ [error]: MissingSchema
          storeseo-meta │ The schema does not exist
          storeseo-meta │
          storeseo-meta │ 1  {%- if product.metafields.store_seo.cannonical_url.size > 2 -%}
          storeseo-meta │
          storeseo-meta │
          storeseo-meta │ [error]: MissingSchema
          storeseo-meta │ The schema does not exist
          storeseo-meta │
          storeseo-meta │ 1  {% if shop.metafields.store_seo.google_site_verification_meta.size > 2 %}
          storeseo-meta │
          storeseo-meta │
          storeseo-meta │ [error]: MissingSchema
          storeseo-meta │ The schema does not exist
          storeseo-meta │
          storeseo-meta │ 1  {%- if request.page_type == 'article' -%}
          storeseo-meta │
          storeseo-meta │
          storeseo-meta │ [error]: MissingSchema
          storeseo-meta │ The schema does not exist
          storeseo-meta │
          storeseo-meta │ 1  {% if template contains 'blog' %}
          storeseo-meta │
          storeseo-meta │
          storeseo-meta │ [error]: MissingSchema
          storeseo-meta │ The schema does not exist
          storeseo-meta │
          storeseo-meta │ 1  {% if template contains 'collection' %}
          storeseo-meta │
          storeseo-meta │
          storeseo-meta │ [error]: MissingSchema
          storeseo-meta │ The schema does not exist
          storeseo-meta │
          storeseo-meta │ 1  {%- if request.page_type == 'index' -%}
          storeseo-meta │
          storeseo-meta │
          storeseo-meta │ [error]: MissingSchema
          storeseo-meta │ The schema does not exist
          storeseo-meta │
          storeseo-meta │ 1  {%- if request.page_type == 'index' -%}
          storeseo-meta │
          storeseo-meta │
          storeseo-meta │ [error]: MissingSchema
          storeseo-meta │ The schema does not exist
          storeseo-meta │
          storeseo-meta │ 1  {% if template contains 'product' %}
          storeseo-meta │
          storeseo-meta │
          storeseo-meta │ [error]: MissingSchema
          storeseo-meta │ The schema does not exist
          storeseo-meta │
          storeseo-meta │ 1  {% if shop.metafields.store_seo.jsonld_enabled == "true" %}
          storeseo-meta │
          storeseo-meta │
          storeseo-meta │ [error]: MissingSchema
          storeseo-meta │ The schema does not exist
          storeseo-meta │
          storeseo-meta │ 1  {%- if product -%}
          storeseo-meta │
          storeseo-meta │
          storeseo-meta │ [error]: MissingSchema
          storeseo-meta │ The schema does not exist
          storeseo-meta │
          storeseo-meta │ 1  {% if shop.metafields.store_seo.redirect_out_of_stock_enabled == "true" %}
          storeseo-meta │
          storeseo-meta │
          storeseo-meta │ [error]: MissingSchema
          storeseo-meta │ The schema does not exist
          storeseo-meta │
          storeseo-meta │ 1  {%- if product and shop.metafields.store_seo.jsonld_enabled == "true" -%}
          storeseo-meta │
          storeseo-meta │
          storeseo-meta │ [error]: MissingSchema
          storeseo-meta │ The schema does not exist
          storeseo-meta │
          storeseo-meta │ 1  {%- if product.metafields.store_seo.facebook_preview_image_url.size > 2 -%}
          storeseo-meta │
          storeseo-meta │
          storeseo-meta │ [error]: MissingSchema
          storeseo-meta │ The schema does not exist
          storeseo-meta │
          storeseo-meta │ 1  {% if shop.metafields.store_seo.local_seo_breadcrumb_schema.value != null %}

Reproduction steps

  1. Install latest @shopify/cli 3.74.1
  2. Make sure your have an extension with blocks and snippets
  3. Try to build the app using yarn build

Note: We are using Node, React template for our APP

Operating System

Mac OS Sequoia 15.2

Shopify CLI version (shopify --version)

@shopify/cli/3.74.1 darwin-arm64 node-v23.6.1

Shell

Warp

Node version (run node -v if you're not sure)

23.6.1

What language and version are you using in your application?

No response

@maruffahmed maruffahmed added the Type: Bug Something isn't working label Jan 26, 2025
@graygilmore
Copy link
Contributor

Thanks for the report @maruffahmed! This has actually been fixed in the downstream tool but hasn't been ported to the CLI yet: https://github.com/Shopify/theme-tools/releases/tag/%40shopify%2Ftheme-check-common%403.6.0

Let me get a PR open for this.

@graygilmore graygilmore linked a pull request Jan 30, 2025 that will close this issue
5 tasks
@graygilmore graygilmore self-assigned this Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants