bigcommerce / stencil-cli

BigCommerce Stencil emulator for local theme development
https://developer.bigcommerce.com/stencil-docs
BSD 4-Clause "Original" or "Old" License
101 stars 141 forks source link

Stencil Bundle Error in Cornerstone 6.12.0 #1151

Open balasuresha opened 11 months ago

balasuresha commented 11 months ago

Recently, I downloaded the latest cornerstone theme 6.12.0 from github (https://github.com/bigcommerce/cornerstone/releases/tag/6.12.0). After installing the required dependency packages using npm install command.

Then, I try to bundle the theme using stencil bundle command - stencil bundle

After this, I'm getting below error

Error: Your theme's schema.json has errors: schema[6].settings[25].type should be equal to one of the allowed values

Screenshot 2023-12-28 183453

node : 14.19.1 npm : 6.14.6 stencil : 4.0.0

jairo-bc commented 11 months ago

Hi @balasuresha, you're on older version of stencil cli, which is not compatible with the latest version of the cornerstone. I recommend first to update node version and then stencil cli

balasuresh-ab commented 11 months ago

@jairo-bc I found the issue. But, not able to identify the solution. In the schema.json file "type": "sort", is throwing this error. Instead of sort, if I change to any type stencil bundle is happening.

image