如何从Shopify模式中删除blocks部分

如何从Shopify模式中删除blocks部分,shopify,liquid,Shopify,Liquid,如何从shopify模式代码中删除blocks部分?我只是试图删除它,但由于一个奇怪的错误而无法保存。请参阅下面的代码: {% schema %} { "name": "Featured Collection", "settings": [ { "type": "collection", "id": "featured_collection", "label": "Collection"

如何从shopify模式代码中删除blocks部分?我只是试图删除它,但由于一个奇怪的错误而无法保存。请参阅下面的代码:

{% schema %}
{
    "name": "Featured Collection",
    "settings": [
        {
            "type": "collection",
            "id": "featured_collection",
            "label": "Collection"
        },
        {
            "type": "text",
            "id": "collection_button_label",
            "label": "Button Label",
            "default": "Learn More"
        }
    ],
    "blocks": [
        { 
            "type": "section",
            "name": "Section",
            "settings": [

            ]
        }
    ],
    "presets": [
        {
            "name": "Featured Collection",
            "category": "Product"
        }
    ]
}
{% endschema %}
我可以保存上面的代码没有任何错误。但是当我删除“blocks”的代码部分时,我得到以下错误:

Error: New schema is incompatible with the current setting value. Invalid type value for block '1577470637989'. Type must be defined in schema.New schema is incompatible with the current setting value. Invalid type value for block '1577470668608'. Type must be defined in schema

这个错误是不言自明的。错误消息

错误:新架构与当前设置值不兼容。 块“1577470637989”的类型值无效。类型必须在中定义 架构。新架构与当前设置值不兼容。 块“1577470668608”的类型值无效。类型必须在中定义 模式

它指出您试图保存的新架构与现有数据不兼容。Shopify不知道如何处理要删除的那些类型的现有块

因此,只需先从Shopify Customizer中删除这些块,然后编辑模式