Skip to content

[Bug]: theme dev always crashing instantly #5174

Open
@haythemblubolt

Description

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions