Open timstarkk opened 2 years ago
Hey Tim,
If the theme is a stencil based theme and not a blueprint theme then there should have already been a config.json file after downloading it from the BigCommerce control panel.
There should also be a package.json file and all the theme templates should use handlebars, like {{#> component}}, and not %% for "snippets". Check out the cornerstone theme for what a stencil theme should look like(the default config.json file is also there): https://github.com/bigcommerce/cornerstone
I'm trying to do some work for a client, but cannot get their bigcommerce site running locally. I have installed stencil CLI (v3.1.1) and downloaded the theme from the bigcommerce dashboard (all files). from the root of the theme i ran "stencil init", then "npm i" and "stencil start".
when i run stencil start, it throws an error saying there's no config.json file.
this is the error i get : "not ok -- Error: You must have a config.json file in your top level theme directory."
How do i generate the config.json file?
The only config file I see is config.stencil.json.
I have also tried running "stencil pull" in hopes that it would pull the config, but it throws another error: "not ok -- Error: Could not fetch active theme details for channel 1: Request failed with status code 404"
Expected behavior
starts
Actual behavior
throws error
Steps to reproduce behavior
run 'stencil start'
Environment
Stencil-cli version
stencil --version
:3.1.1
Node version
node -v
: 12 NPM versionnpm -v
: 6.14.15 OS: mac big sur