【发布时间】:2020-09-24 19:13:15
【问题描述】:
各位开发者好!
我在为 stencil bundle 和 stencil push 问题而苦恼。
我在“验证主题...”时遇到错误
Error: Your theme's schema.json has errors:
schema[1].settings[28].options[0].value should be string,number
schema[1].settings[28].options[1].value should be string,number
...
在尝试测试最新的 cornerstone (5.4.5) 主题版本并更新 stencil-cli 后,我似乎遇到了这个问题,现在我无法使用最旧的版本 (1.10.0) schema.json 文件 -> https://github.com/bigcommerce/cornerstone/blob/1.10.0/schema.json
现在它只适用于这两个文件:
- schema.json -> https://github.com/bigcommerce/cornerstone/blob/4.5.4/schema.json
- schemaTranslations.json -> https://github.com/bigcommerce/cornerstone/blob/4.5.4/schemaTranslations.json
但我不确定如果我使用不同的架构文件会如何影响现场工作。
是否可以再次使用旧的 schema.json 文件? 以前都有效...
我尝试过:
- 删除所有节点模块
- 重新安装@bigcommerce/stencil-cli
- 和节点模块(npm install)
【问题讨论】:
标签: json npm bigcommerce