在 Shopify 后台模板中删除 announcement-bar.liquid 后,再次添加同名文件报错:New schema is incompatible with the current setting value. 块“announcement-bar-0”的类型值无效。类型必须在架构中定义。

1、在 Shopify 后台模板中删除 announcement-bar.liquid 后,再次添加同名文件报错:New schema is incompatible with the current setting value. 块“announcement-bar-0”的类型值无效。类型必须在架构中定义。如图1

在 Shopify 后台模板中删除 announcement-bar.liquid 后,再次添加同名文件报错:New schema is incompatible with the current setting value. 块“announcement-bar-0”的类型值无效。类型必须在架构中定义

图1

2、编辑 Config/settings_data.json 文件,删除掉 current->sections->announcement-bar、presets->Default->sections->announcement-bar 。如图2

编辑 Config/settings_data.json 文件,删除掉 current->sections->announcement-bar、presets->Default->sections->announcement-bar

图2

3、再次添加名为 announcement-bar 的分区文件,添加成功。如图3

再次添加名为 announcement-bar 的分区文件,添加成功

图3

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/webdev/250716.html

(0)
上一篇 2022年5月1日 03:12
下一篇 2022年5月1日 03:16

相关推荐

发表回复

登录后才能评论