stencil-cli icon indicating copy to clipboard operation
stencil-cli copied to clipboard

After migrating to new Macbook pro, I'm unable to start stencil

Open ThinkByDesign opened this issue 1 year ago • 2 comments

All of this is happening after migrating from a 2019 MacBook Pro (Intel) to an 2023 MacBook Pro (M2) using Apple's Migration Assistant. Everything else has gone very smoothly.

Expected behavior

BigCommerce local dev server should start

Actual behavior

BigCommerce % stencil start No api host found in config file, falling back to https://api.bigcommerce.com. You may need to run 'stencil init' again. not ok -- StoreSettingsLocaleError: Request failed with status code 403 URL: https://api.bigcommerce.com/stores/yopsn0sdul/v3/settings/store/locale Method: GET Please visit the troubleshooting page https://developer.bigcommerce.com/stencil-docs/deploying-a-theme/troubleshooting-theme-uploads. If this error persists, please visit https://github.com/bigcommerce/stencil-cli/issues and submit an issue.

Note: I have run stencil init several times. It pre-populates the correct values and then tells me that everything is ready to run "stencil start". Clearly not.

I've also tried "stencil init -h https://api.bigcommerce.com/" per this issue: https://github.com/bigcommerce/stencil-cli/issues/1047, and like others have just encountered: not ok -- Error: Could not fetch a list of the store channels: Request failed with status code 404

Since I'm not the BigCommerce account "owner", I'm unable to try and create a new API key just yet (which may be what made things work in their case?)

Steps to reproduce behavior

In my case, I just run "stencil start". How would you reproduce the conditions under which you would experience, this? no idea.

Environment

Stencil-cli version stencil --version: 7.1.2 (old system: 3.5.0)

Node version node -v: 18.16.0 (old system: 12.22.6)

NPM version npm -v: 9.5.1 (old system: 6.14.15)

OS: MacOS Ventura, 13.2.1 (old system MacOS Ventura, 13.4) - I should probably update the new system!

I'm hesitant to downgrade the versions on the new system without some indication that it's the right thing to try first.

ThinkByDesign avatar Jun 10 '23 23:06 ThinkByDesign

@ThinkByDesign I ran into this issue on an old theme. Here were my steps to resolve

  • install node version 12 (likely that's what you need as well but... could be 14 as well)
  • update to 100% api access on your account
  • use the same version of stencil that you used previously (3.5 in your case 3.4.1 in mine)

It "should" be unrelated to your macbook. Hopefully that works for you.

aisflat439 avatar Jul 17 '23 13:07 aisflat439

Hey @ThinkByDesign I just wanted to see if your issue has been resolved and if @aisflat439 solution worked for you, or if you are still in need of unblocking? Just let us know.

bc-stephen-hilliard avatar Jul 20 '23 18:07 bc-stephen-hilliard