Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: theme dev always crashing instantly #5174

Open
2 tasks done
haythemblubolt opened this issue Jan 9, 2025 · 1 comment
Open
2 tasks done

[Bug]: theme dev always crashing instantly #5174

haythemblubolt opened this issue Jan 9, 2025 · 1 comment
Labels
Type: Bug Something isn't working

Comments

@haythemblubolt
Copy link

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

Theme

Expected behavior

shopify theme dev should be executed correctly from my local environment to run the Shopify theme locally

Actual behavior

The shopify theme dev command fails with multiple errors (AggregateError, failed to sync with theme, etc...). I tried on 2 different computers, Windows and Linux, Node 16 18 and 20, downloaded latest and older versions of Shopify CLI package. I only got it working only a few times on a public Internet WIFI at a public place. I used 4G of multiple Internet providers but had the same issue. I'm not sure what to do else.
shopify auth logout and shopify theme pull both work correctly but not the dev command.
I also tried the following:

  • I've tried to use a VPN with geographical location switch to UK and tested but got the same error (actually based in Tunisia).
  • I disabled Firewall, VPN, antivirus and run again the command but still the same
  • shopify theme dev --log-level=debug isn't working because it says "Nonexistant flag: --log-level:debug
  • shopify theme clear-cache didn't work, it says "command theme clear-cache" not found
  • Uninstalled and reinstalled shopify cli, but running theme dev resulted in the same issue
  • Installed ngrok
  • shopify config set tunnel ngrok isn't working, it says "command config set tunnel ngrok" not found
  • ngrok http 8081 failed when run independently, please check the attachment for the error message

Image
Image
Image
Image
Image
ngrok.txt

Verbose output

Verbose output

Check the output in this file
https://drive.google.com/file/d/1dX48gIK6ohVCqrpEGfkFmAbRcP3J3e8n/view?usp=drive_link

Reproduction steps

  1. Just running shopify theme dev from my shell terminal

Operating System

Windows 11 with Ubuntu 22.04.5 WSL v2 (tried also directly on Windows 11 but same outcome)

Shopify CLI version (shopify --version)

3.72.2

Shell

No response

Node version (run node -v if you're not sure)

20.12.1 (tried also with Node v18.0.0 and v16.0.0)

What language and version are you using in your application?

Javascript + Typescript

@haythemblubolt haythemblubolt added the Type: Bug Something isn't working label Jan 9, 2025
@aswamy
Copy link
Contributor

aswamy commented Jan 9, 2025

From your verbose logs, it seems like it's actually successfully being setup, then some connection breaks afterwards.

There was a ticket a while ago where folks were being affected by Cloudflare re-routing. Seems like Tunisia is on the list of "Partially rerouted" https://www.cloudflarestatus.com/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants