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

Failed to perform the initial theme synchronisation. #5016

Open
2 tasks done
anand-s-marmeto opened this issue Dec 4, 2024 · 13 comments
Open
2 tasks done

Failed to perform the initial theme synchronisation. #5016

anand-s-marmeto opened this issue Dec 4, 2024 · 13 comments
Labels
Area: @shopify/theme @shopify/theme package issues Severity: 2 High Severity Type: Bug Something isn't working

Comments

@anand-s-marmeto
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

Running shopify theme dev --store "store-name" should open up a preview for my development theme.

Actual behavior

Image

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

  1. Clone any branch from the levis-india-store on your IDE.
  2. 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

@anand-s-marmeto anand-s-marmeto added the Type: Bug Something isn't working label Dec 4, 2024
@metiuzucc
Copy link

Same issue here (Mac OS Sequoia 15.1.1).

Also tried to:

  • downgrade to 3.68.x or upgrade to 3.71
  • use the CLI installed with npm, pnpm or homebrew
  • switch between three different network connections

Sometimes I manage to sync some files and see my local preview, than it stops also if I do not save or make any change. Otherwise I'm having the error posted above immediately.

This is occurring since 2 days now (Monday morning).

@isaacroldan isaacroldan added the Area: @shopify/theme @shopify/theme package issues label Dec 4, 2024
@charlespwd
Copy link
Contributor

charlespwd commented Dec 4, 2024

Can you rerun with the --verbose flag and send us the result? Could be a link to a github gist if the file is too big.

Seems to be working for me so there might be a problem with your theme/store or something.

@rmajidy
Copy link

rmajidy commented Dec 5, 2024

Had 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>

@anand-s-marmeto
Copy link
Author

anand-s-marmeto commented Dec 5, 2024

@charlespwd this is the output that I get on running with the --verbose flag:
:It basically prints all of the wishlist code - it is a third party application then exists with the following -

With request headers:

  • User-Agent: Shopify CLI; v=3.71.3
  • Keep-Alive: timeout=30
  • Sec-CH-UA-PLATFORM: win32
  • Content-Type: application/json

to https://levis-india-store.myshopify.com/admin/api/2024-10/graphql.json
╭─ error ──────────────────────────────────────────────────────────────────────╮
│ │
│ Failed to perform the initial theme synchronization. │
│ Asset must have a value or attachment │
│ │

@jenadam
Copy link

jenadam commented Dec 6, 2024

Also happened for me, had to downgrade.

@puspjoshi
Copy link

Also happened for me same issue

@dileep-ponna
Copy link

Had 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>

this worked for me too. Thanks a lot.

@anand-s-marmeto
Copy link
Author

anand-s-marmeto commented Dec 9, 2024 via email

@anand-s-marmeto
Copy link
Author

anand-s-marmeto commented Dec 9, 2024 via email

@frandiox
Copy link
Contributor

frandiox commented Dec 10, 2024

│ Failed to perform the initial theme synchronization. │
│ Asset must have a value or attachment │

Hi 👋 This seems to be similar to #5010 (related to having empty files in the theme).

Can you try with the last patch release 3.71.4? It should be fixed there if it's the same problem 🤞

@anand-s-marmeto
Copy link
Author

anand-s-marmeto commented Dec 10, 2024 via email

@haziqfiqri
Copy link

I flush my dns and shopify theme dev works as usual.

windows:

ipconfig /flushdns

@frandiox frandiox added the Severity: 2 High Severity label Dec 16, 2024
@djang0dev
Copy link

djang0dev commented Dec 26, 2024

Hi same problem here for some shop:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: @shopify/theme @shopify/theme package issues Severity: 2 High Severity Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests