bigcommerce / stencil-cli

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

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

Open ThinkByDesign opened 1 year ago

ThinkByDesign commented 1 year ago

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.

aisflat439 commented 1 year ago

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

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

bc-stephen-hilliard commented 1 year ago

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.