cli: Failed to perform the initial theme synchronisation.
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
Running shopify theme dev --store “store-name” should open up a preview for my development theme.
Actual behavior
Verbose output
Verbose output
Build Liquid themes.
USAGE
$ shopify theme COMMAND
COMMANDS
theme check Validate the theme.
theme console Shopify Liquid REPL (read-eval-print loop) tool
theme delete Delete remote themes from the connected store. This command can't be undone.
theme dev Uploads the current theme as a development theme to the connected store, then prints theme
editor and preview URLs to your terminal. While running, changes will push to the store in real time.
theme info Displays information about your theme environment, including your current store. Can also
retrieve information about a specific theme.
theme init Clones a Git repository to use as a starting point for building a new theme.
theme language-server Start a Language Server Protocol server.
theme list Lists the themes in your store, along with their IDs and statuses.
theme open Opens the preview of your remote theme.
theme package Package your theme into a .zip file, ready to upload to the Online Store.
theme publish Set a remote theme as the live theme.
theme pull Download your remote theme files locally.
theme push Uploads your local theme files to the connected store, overwriting the remote version if
specified.
theme rename Renames an existing theme.
theme share Creates a shareable, unpublished, and new theme on your theme library with a randomized name.
Reproduction steps
- Clone any branch from the levis-india-store on your IDE.
- Type “npm run dev” —> this basically runs the command “shopify theme dev --store=levis-india-store.myshopify.com”
Operating System
Windows 10 Pro
Shopify CLI version (shopify --version)
3.70.0
Shell
No response
Node version (run node -v if you’re not sure)
v22.11.0
What language and version are you using in your application?
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 30 (4 by maintainers)
Following worked for me
npm uninstall -g @shopify/cli@latestnpm install -g @shopify/cli@3.72.0Had same issue here. Downgrading to 3.68 worked for me. Make sure you uninstall the package globally then install it with
npm install -g @shopify/cli@<version>I also have been facing this issue for many months now. (Deleting development theme did not help.)
Sample error received on version
3.70.0:Sample error received on version
3.76.2:Luckily, using
--legacyflag (likeshopify theme dev --legacy --store my-shopify-store.myshopify.com) has been working as a workaround. As--legacyflag was removed in version3.69.0, I have been using version3.68.1of@shopify/cli.Note: After the downgrade, dunno why, but the first 2-3 executions of
shopify theme devjust hangs. Killing the terminal, launching a new one and running it again works!Hoping this gets fixed in latest version as who knows when old version becomes unsupported.
Same issue happening for me. Had to downgrade to v3.72.0
this one works for me, thanks @chiragramjibhaipatel
What worked for me was removing my development theme by using the following command:
shopify theme delete -t=<Your development theme id>I flush my dns and
shopify theme devworks as usual.windows: