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] Failed to perform the initial theme synchronization. Asset must have a value or attachment since 3.71.3 #5034

Closed
2 tasks done
msev opened this issue Dec 5, 2024 · 4 comments
Labels
Type: Bug Something isn't working

Comments

@msev
Copy link

msev commented Dec 5, 2024

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

It's probably a new asset check on the Shopify CLI side, but I think it's a bit too restrictive.
There should be no errors.

Actual behavior

I don't know if it comes from version 3.71.3 or 3.71.x (because on version 3.70.0 I don't reproduce the problem).

I use a bundler tool and so when I run yarn start the js files are modified and the @dev- prefix is added to all the JS files, for example the theme.js file becomes @dev-theme.js.

If I first run yarn start in terminal 1 and then shopify theme dev in terminal 2, I get the following error:

╭─ error ────────────────────────────────────────────────────────────────────────────────╮
│                                                                                        │
│  Failed to perform the initial theme synchronization.                                  │
│  Asset must have a value or attachment                                                 │
│                                                                                        │
╰────────────────────────────────────────────────────────────────────────────────────────╯

On the other hand, if I reverse the order of execution of the 2 commands, the problem doesn't occur.

Once again, if I go back to Shopify CLI version 3.70.0, the problem isn't there either.

It's probably a new asset check on the Shopify CLI side, but I think it's a bit too restrictive.

Verbose output

Verbose output
$ shopify theme dev -e=dev --path=theme/ --open --verbose
2024-12-05T10:09:59.074Z: Running command theme dev
2024-12-05T10:09:59.080Z: Notifications to show: 0
2024-12-05T10:09:59.082Z: Reading the content of file at theme/shopify.theme.toml...
╭─ info ───────────────────────────────────────────────────────────────╮
│                                                                      │
│  Using applicable flags from dev environment:                        │
│                                                                      │
│    • store: xxx.myshopify.com                       │
│    • theme: xxx                                             │
│    • ignore: !locales/*.json                                         │
│                                                                      │
╰──────────────────────────────────────────────────────────────────────╯

2024-12-05T10:09:59.109Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2024-12-05T10:09:59.109Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store xxx.myshopify.com:
[]

2024-12-05T10:09:59.109Z: Getting session store...
2024-12-05T10:09:59.110Z: Validating existing session against the scopes:
[
"openid",
"https://api.shopify.com/auth/shop.admin.graphql",
"https://api.shopify.com/auth/shop.admin.themes",
"https://api.shopify.com/auth/partners.collaborator-relationships.readonly",
"https://api.shopify.com/auth/shop.storefront-renderer.devtools",
"https://api.shopify.com/auth/partners.app.cli.access",
"https://api.shopify.com/auth/destinations.readonly"
]
For applications:
{
"adminApi": {
  "scopes": [],
  "storeFqdn": "xxx.myshopify.com"
}
}

2024-12-05T10:09:59.111Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-12-05T10:09:59.111Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
- User-Agent: Shopify CLI; v=3.71.3
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json

2024-12-05T10:09:59.338Z: Request to https://accounts.shopify.com/oauth/introspection completed in 226 ms
With response headers:
- cache-control: no-cache, no-store, private, must-revalidate, max-age=0
- content-type: application/json; charset=utf-8
- etag: W/"a7f90fa946ff5d92381f6e631cb4001b"
- server-timing: processing;dur=27, socket_queue;dur=1.55, edge;dur=1.018, util;dur=0.0, cfRequestDuration;dur=150.999784
- x-request-id: 9ec8915a-5252-4bd5-a6ca-be8888fddce8-1733393399
  
2024-12-05T10:09:59.342Z: The identity token is valid: true
2024-12-05T10:09:59.343Z: 
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false

2024-12-05T10:09:59.613Z: Request to https://xxx.myshopify.com/admin/api/unstable/themes.json?fields=id%2Cname%2Crole%2Cprocessing completed in 268 ms
With response headers:
- content-type: application/json; charset=utf-8
- server-timing: processing;dur=54, cfRequestDuration;dur=213.999987
- x-request-id: 5e92a125-473d-4954-8f0d-8c91e91a892e-1733393399
  
2024-12-05T10:09:59.648Z: Port 9292 is free
2024-12-05T10:09:59.658Z: Reading the content of file at theme/.shopifyignore...
2024-12-05T10:09:59.658Z: Reading the content of file at theme/assets/.gitkeep...
2024-12-05T10:09:59.658Z: Reading the content of file at theme/assets/@dev-product.min.js...
2024-12-05T10:09:59.658Z: Reading the content of file at theme/assets/@dev-theme.min.js...
2024-12-05T10:09:59.658Z: Reading the content of file at theme/assets/favicon.svg...
2024-12-05T10:09:59.658Z: Reading the content of file at theme/assets/icon-american-express.svg...
2024-12-05T10:09:59.658Z: Reading the content of file at theme/assets/icon-burger-menu.svg...
2024-12-05T10:09:59.658Z: Reading the content of file at theme/assets/icon-cart.svg...
2024-12-05T10:09:59.659Z: Reading the content of file at theme/assets/icon-chevron-down.svg...
2024-12-05T10:09:59.659Z: Reading the content of file at theme/assets/icon-chevron-left.svg...
2024-12-05T10:09:59.659Z: Reading the content of file at theme/assets/icon-chevron-right.svg...
2024-12-05T10:09:59.659Z: Reading the content of file at theme/assets/icon-chevron-up.svg...
2024-12-05T10:09:59.659Z: Reading the content of file at theme/assets/icon-close.svg...
2024-12-05T10:09:59.659Z: Reading the content of file at theme/assets/icon-facebook.svg...
2024-12-05T10:09:59.659Z: Reading the content of file at theme/assets/icon-instagram.svg...
2024-12-05T10:09:59.659Z: Reading the content of file at theme/assets/icon-linkedin.svg...
2024-12-05T10:09:59.659Z: Reading the content of file at theme/assets/icon-mastercard.svg...
2024-12-05T10:09:59.659Z: Reading the content of file at theme/assets/icon-pause.svg...
2024-12-05T10:09:59.659Z: Reading the content of file at theme/assets/icon-paypal.svg...
2024-12-05T10:09:59.659Z: Reading the content of file at theme/assets/icon-play.svg...
2024-12-05T10:09:59.659Z: Reading the content of file at theme/assets/icon-replay.svg...
2024-12-05T10:09:59.659Z: Reading the content of file at theme/assets/icon-sad.svg...
2024-12-05T10:09:59.659Z: Reading the content of file at theme/assets/icon-search.svg...
2024-12-05T10:09:59.660Z: Reading the content of file at theme/assets/icon-success.svg...
2024-12-05T10:09:59.660Z: Reading the content of file at theme/assets/icon-user.svg...
2024-12-05T10:09:59.660Z: Reading the content of file at theme/assets/icon-visa.svg...
2024-12-05T10:09:59.660Z: Reading the content of file at theme/assets/icon-x.svg...
2024-12-05T10:09:59.660Z: Reading the content of file at theme/assets/icon-youtube.svg...
2024-12-05T10:09:59.660Z: Reading the content of file at theme/assets/loader-black.svg...
2024-12-05T10:09:59.660Z: Reading the content of file at theme/assets/loader-white.svg...
2024-12-05T10:09:59.660Z: Reading the content of file at theme/assets/logo-short.svg...
2024-12-05T10:09:59.660Z: Reading the content of file at theme/assets/logo.svg...
2024-12-05T10:09:59.660Z: Reading the content of file at theme/config/settings_data.json...
2024-12-05T10:09:59.660Z: Reading the content of file at theme/config/settings_schema.json...
2024-12-05T10:09:59.660Z: Reading the content of file at theme/layout/theme.liquid...
2024-12-05T10:09:59.660Z: Reading the content of file at theme/locales/en.default.json...
2024-12-05T10:09:59.660Z: Reading the content of file at theme/locales/en.default.schema.json...
2024-12-05T10:09:59.660Z: Reading the content of file at theme/locales/fr.json...
2024-12-05T10:09:59.660Z: Reading the content of file at theme/locales/fr.schema.json...
2024-12-05T10:09:59.660Z: Reading the content of file at theme/sections/before-after.liquid...
2024-12-05T10:09:59.660Z: Reading the content of file at theme/sections/cart-lines.liquid...
2024-12-05T10:09:59.661Z: Reading the content of file at theme/sections/cart-minilines.liquid...
2024-12-05T10:09:59.661Z: Reading the content of file at theme/sections/cart-upsell.liquid...
2024-12-05T10:09:59.661Z: Reading the content of file at theme/sections/editorial.liquid...
2024-12-05T10:09:59.661Z: Reading the content of file at theme/sections/footer-group.json...
2024-12-05T10:09:59.661Z: Reading the content of file at theme/sections/footer.liquid...
2024-12-05T10:09:59.661Z: Reading the content of file at theme/sections/fullvisual.liquid...
2024-12-05T10:09:59.661Z: Reading the content of file at theme/sections/gallery.liquid...
2024-12-05T10:09:59.661Z: Reading the content of file at theme/sections/header-group.json...
2024-12-05T10:09:59.661Z: Reading the content of file at theme/sections/header.liquid...
2024-12-05T10:09:59.661Z: Reading the content of file at theme/sections/hero.liquid...
2024-12-05T10:09:59.661Z: Reading the content of file at theme/sections/instagram.liquid...
2024-12-05T10:09:59.661Z: Reading the content of file at theme/sections/main-article.liquid...
2024-12-05T10:09:59.661Z: Reading the content of file at theme/sections/main-blog.liquid...
2024-12-05T10:09:59.661Z: Reading the content of file at theme/sections/main-cart.liquid...
2024-12-05T10:09:59.661Z: Reading the content of file at theme/sections/main-collection.liquid...
2024-12-05T10:09:59.661Z: Reading the content of file at theme/sections/main-customers-account.liquid...
2024-12-05T10:09:59.662Z: Reading the content of file at theme/sections/main-customers-activate_account.liquid...
2024-12-05T10:09:59.662Z: Reading the content of file at theme/sections/main-customers-addresses.liquid...
2024-12-05T10:09:59.662Z: Reading the content of file at theme/sections/main-customers-login.liquid...
2024-12-05T10:09:59.662Z: Reading the content of file at theme/sections/main-customers-order.liquid...
2024-12-05T10:09:59.662Z: Reading the content of file at theme/sections/main-customers-register.liquid...
2024-12-05T10:09:59.662Z: Reading the content of file at theme/sections/main-customers-reset_password.liquid...
2024-12-05T10:09:59.662Z: Reading the content of file at theme/sections/main-page.liquid...
2024-12-05T10:09:59.662Z: Reading the content of file at theme/sections/main-password.liquid...
2024-12-05T10:09:59.662Z: Reading the content of file at theme/sections/main-product.liquid...
2024-12-05T10:09:59.662Z: Reading the content of file at theme/sections/main-search.liquid...
2024-12-05T10:09:59.662Z: Reading the content of file at theme/sections/newsletter.liquid...
2024-12-05T10:09:59.662Z: Reading the content of file at theme/sections/offcanvas.liquid...
2024-12-05T10:09:59.662Z: Reading the content of file at theme/sections/overlay-group.json...
2024-12-05T10:09:59.662Z: Reading the content of file at theme/sections/panels.liquid...
2024-12-05T10:09:59.662Z: Reading the content of file at theme/sections/predictive-search-results.liquid...
2024-12-05T10:09:59.662Z: Reading the content of file at theme/sections/product-miniteaser-upsell.liquid...
2024-12-05T10:09:59.662Z: Reading the content of file at theme/sections/product-modal.liquid...
2024-12-05T10:09:59.662Z: Reading the content of file at theme/sections/products-tabs.liquid...
2024-12-05T10:09:59.662Z: Reading the content of file at theme/sections/products.liquid...
2024-12-05T10:09:59.662Z: Reading the content of file at theme/sections/pushes.liquid...
2024-12-05T10:09:59.663Z: Reading the content of file at theme/sections/recently-viewed.liquid...
2024-12-05T10:09:59.663Z: Reading the content of file at theme/sections/reinsurance.liquid...
2024-12-05T10:09:59.663Z: Reading the content of file at theme/sections/richtext.liquid...
2024-12-05T10:09:59.663Z: Reading the content of file at theme/sections/topbar.liquid...
2024-12-05T10:09:59.663Z: Reading the content of file at theme/sections/video.liquid...
2024-12-05T10:09:59.663Z: Reading the content of file at theme/snippets/account-nav.liquid...
2024-12-05T10:09:59.663Z: Reading the content of file at theme/snippets/article.liquid...
2024-12-05T10:09:59.663Z: Reading the content of file at theme/snippets/block.liquid...
2024-12-05T10:09:59.663Z: Reading the content of file at theme/snippets/breadcrumb.liquid...
2024-12-05T10:09:59.663Z: Reading the content of file at theme/snippets/caesura.liquid...
2024-12-05T10:09:59.663Z: Reading the content of file at theme/snippets/cart-upsell.liquid...
2024-12-05T10:09:59.663Z: Reading the content of file at theme/snippets/drawer.liquid...
2024-12-05T10:09:59.663Z: Reading the content of file at theme/snippets/filters.liquid...
2024-12-05T10:09:59.663Z: Reading the content of file at theme/snippets/hero.liquid...
2024-12-05T10:09:59.663Z: Reading the content of file at theme/snippets/icon.liquid...
2024-12-05T10:09:59.663Z: Reading the content of file at theme/snippets/image.liquid...
2024-12-05T10:09:59.663Z: Reading the content of file at theme/snippets/jsonld-for-seo.liquid...
2024-12-05T10:09:59.663Z: Reading the content of file at theme/snippets/megaroll-push.liquid...
2024-12-05T10:09:59.663Z: Reading the content of file at theme/snippets/megaroll.liquid...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/snippets/minicart.liquid...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/snippets/modal.liquid...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/snippets/pagination.liquid...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/snippets/preload-tags.liquid...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/snippets/product-line.liquid...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/snippets/product-miniline.liquid...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/snippets/product-miniteaser.liquid...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/snippets/product-recipient-form.liquid...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/snippets/product-sticker.liquid...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/snippets/product-teaser.liquid...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/snippets/product-variant-options.liquid...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/snippets/product-variant-selector.liquid...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/snippets/rte-formatted.liquid...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/snippets/script-tags.liquid...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/snippets/social-meta-tags.liquid...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/snippets/style-tags.liquid...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/templates/404.json...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/templates/article.json...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/templates/blog.json...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/templates/cart.json...
2024-12-05T10:09:59.664Z: Reading the content of file at theme/templates/collection.json...
2024-12-05T10:09:59.665Z: Reading the content of file at theme/templates/gift_card.liquid...
2024-12-05T10:09:59.665Z: Reading the content of file at theme/templates/list-collections.json...
2024-12-05T10:09:59.665Z: Reading the content of file at theme/templates/page.contact.liquid...
2024-12-05T10:09:59.665Z: Reading the content of file at theme/templates/index.json...
2024-12-05T10:09:59.665Z: Reading the content of file at theme/templates/page.json...
2024-12-05T10:09:59.665Z: Reading the content of file at theme/templates/page.style-guidelines.liquid...
2024-12-05T10:09:59.665Z: Reading the content of file at theme/templates/password.json...
2024-12-05T10:09:59.665Z: Reading the content of file at theme/templates/product.json...
2024-12-05T10:09:59.665Z: Reading the content of file at theme/templates/customers/account.json...
2024-12-05T10:09:59.665Z: Reading the content of file at theme/templates/search.json...
2024-12-05T10:09:59.665Z: Reading the content of file at theme/templates/customers/activate_account.json...
2024-12-05T10:09:59.665Z: Reading the content of file at theme/templates/customers/addresses.json...
2024-12-05T10:09:59.665Z: Reading the content of file at theme/templates/customers/login.json...
2024-12-05T10:09:59.665Z: Reading the content of file at theme/templates/customers/login.recover.liquid...
2024-12-05T10:09:59.665Z: Reading the content of file at theme/templates/customers/order.json...
2024-12-05T10:09:59.665Z: Reading the content of file at theme/templates/customers/register.json...
2024-12-05T10:09:59.666Z: Reading the content of file at theme/templates/customers/reset_password.json...
2024-12-05T10:09:59.715Z: Request to https://xxx.myshopify.com/ completed in 89 ms
With response headers:
- content-type: text/html; charset=utf-8
- etag: "cacheable:d8e362df5a4329c5a7443572efb6b031"
- server-timing: processing;dur=16, db;dur=3, db_async;dur=2.074, asn;desc="209166", edge;desc="CDG", country;desc="FR", theme;desc="137738879127", pageType;desc="index", servedBy;desc="rcmd", requestID;desc="b212fa7e-600c-47f4-8355-3c18269f9a12-1733393399", cfRequestDuration;dur=49.999952
- x-request-id: b212fa7e-600c-47f4-8355-3c18269f9a12-1733393399
  
2024-12-05T10:09:59.715Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2024-12-05T10:09:59.715Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store xxx.myshopify.com:
[]

2024-12-05T10:09:59.715Z: Getting session store...
2024-12-05T10:09:59.716Z: Validating existing session against the scopes:
[
"openid",
"https://api.shopify.com/auth/shop.admin.graphql",
"https://api.shopify.com/auth/shop.admin.themes",
"https://api.shopify.com/auth/partners.collaborator-relationships.readonly",
"https://api.shopify.com/auth/shop.storefront-renderer.devtools",
"https://api.shopify.com/auth/partners.app.cli.access",
"https://api.shopify.com/auth/destinations.readonly"
]
For applications:
{
"adminApi": {
  "scopes": [],
  "storeFqdn": "xxx.myshopify.com"
}
}

2024-12-05T10:09:59.716Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-12-05T10:09:59.716Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
- User-Agent: Shopify CLI; v=3.71.3
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json

2024-12-05T10:09:59.927Z: Request to https://accounts.shopify.com/oauth/introspection completed in 211 ms
With response headers:
- cache-control: no-cache, no-store, private, must-revalidate, max-age=0
- content-type: application/json; charset=utf-8
- etag: W/"a7f90fa946ff5d92381f6e631cb4001b"
- server-timing: processing;dur=27, socket_queue;dur=1.499, edge;dur=1.016, util;dur=0.15, cfRequestDuration;dur=164.999962
- x-request-id: d8c9452b-dfef-4cad-bd5f-289957c5b8c7-1733393399
  
2024-12-05T10:09:59.930Z: The identity token is valid: true
2024-12-05T10:09:59.930Z: 
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false

2024-12-05T10:09:59.931Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]

2024-12-05T10:09:59.931Z: Getting session store...
2024-12-05T10:09:59.932Z: Validating existing session against the scopes:
[
"openid",
"https://api.shopify.com/auth/shop.admin.graphql",
"https://api.shopify.com/auth/shop.admin.themes",
"https://api.shopify.com/auth/partners.collaborator-relationships.readonly",
"https://api.shopify.com/auth/shop.storefront-renderer.devtools",
"https://api.shopify.com/auth/partners.app.cli.access",
"https://api.shopify.com/auth/destinations.readonly"
]
For applications:
{
"storefrontRendererApi": {
  "scopes": []
}
}

2024-12-05T10:09:59.932Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-12-05T10:09:59.933Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
- User-Agent: Shopify CLI; v=3.71.3
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json

2024-12-05T10:10:00.145Z: Request to https://accounts.shopify.com/oauth/introspection completed in 212 ms
With response headers:
- cache-control: no-cache, no-store, private, must-revalidate, max-age=0
- content-type: application/json; charset=utf-8
- etag: W/"a7f90fa946ff5d92381f6e631cb4001b"
- server-timing: processing;dur=26, socket_queue;dur=1.785, edge;dur=1.015, util;dur=0.0, cfRequestDuration;dur=153.000116
- x-request-id: 4b2b1e0e-df86-496d-a3e7-743e116caf7b-1733393400
  
2024-12-05T10:10:00.147Z: The identity token is valid: true
2024-12-05T10:10:00.147Z: 
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false

2024-12-05T10:10:00.326Z: Request to https://xxx.myshopify.com/?preview_theme_id=131972661399&_fd=0&pb=0 completed in 177 ms
With response headers:
- content-type: text/html; charset=utf-8
- server-timing: processing;dur=12;desc="gc:1", db;dur=5, db_async;dur=2.428, asn;desc="209166", edge;desc="CDG", country;desc="FR", theme;desc="131972661399", pageType;desc="index", servedBy;desc="wzb9", requestID;desc="9c3efea2-eb76-4eb0-8d2a-d7642c5fa553-1733393400", cfRequestDuration;dur=159.999847
- x-request-id: 9c3efea2-eb76-4eb0-8d2a-d7642c5fa553-1733393400
  
2024-12-05T10:10:00.352Z: Sending "Admin" GraphQL request:
query publicApiVersions {
publicApiVersions {
  handle
  supported
  __typename
}
}

With variables:
{}

With request headers:
- User-Agent: Shopify CLI; v=3.71.3
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json

to https://xxx.myshopify.com/admin/api/unstable/graphql.json
2024-12-05T10:10:00.610Z: Request to https://xxx.myshopify.com/admin/api/unstable/graphql.json completed in 258 ms
With response headers:
- content-type: application/json; charset=utf-8
- server-timing: processing;dur=50, graphql;desc="admin/query/other", cfRequestDuration;dur=206.000090
- x-request-id: aa60bd24-4405-4403-ab4d-b707556fda3f-1733393400
  
2024-12-05T10:10:00.612Z: Sending "Admin" GraphQL request:
query getThemeFileChecksums($id: ID!, $after: String) {
theme(id: $id) {
  files(first: 250, after: $after) {
    nodes {
      filename
      size
      checksumMd5
      __typename
    }
    userErrors {
      filename
      code
      __typename
    }
    pageInfo {
      hasNextPage
      endCursor
      __typename
    }
    __typename
  }
  __typename
}
}

With variables:
{
"id": "gid://shopify/OnlineStoreTheme/131972661399",
"after": null
}

With request headers:
- User-Agent: Shopify CLI; v=3.71.3
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json

to https://xxx.myshopify.com/admin/api/2024-10/graphql.json
2024-12-05T10:10:00.948Z: Request to https://xxx.myshopify.com/admin/api/2024-10/graphql.json completed in 336 ms
With response headers:
- content-type: application/json; charset=utf-8
- server-timing: processing;dur=95, graphql;desc="admin/query/other", cfRequestDuration;dur=253.000021
- x-request-id: 7704e2f2-39fc-4b53-84fa-2c298f5f66ca-1733393400
  
2024-12-05T10:10:00.965Z: Ignoring theme file config/settings_data.json via .shopifyignore...
2024-12-05T10:10:00.966Z: Ignoring theme file locales/en.default.json via .shopifyignore...
2024-12-05T10:10:00.966Z: Ignoring theme file locales/fr.json via .shopifyignore...
2024-12-05T10:10:00.968Z: Ignoring theme file sections/footer-group.json via .shopifyignore...
2024-12-05T10:10:00.968Z: Ignoring theme file sections/header-group.json via .shopifyignore...
2024-12-05T10:10:00.973Z: Ignoring theme file sections/overlay-group.json via .shopifyignore...
2024-12-05T10:10:00.982Z: Ignoring theme file templates/404.json via .shopifyignore...
2024-12-05T10:10:00.982Z: Ignoring theme file templates/article.json via .shopifyignore...
2024-12-05T10:10:00.983Z: Ignoring theme file templates/blog.json via .shopifyignore...
2024-12-05T10:10:00.983Z: Ignoring theme file templates/cart.json via .shopifyignore...
2024-12-05T10:10:00.983Z: Ignoring theme file templates/collection.json via .shopifyignore...
2024-12-05T10:10:00.984Z: Ignoring theme file templates/list-collections.json via .shopifyignore...
2024-12-05T10:10:00.984Z: Ignoring theme file templates/index.json via .shopifyignore...
2024-12-05T10:10:00.984Z: Ignoring theme file templates/page.json via .shopifyignore...
2024-12-05T10:10:00.984Z: Ignoring theme file templates/password.json via .shopifyignore...
2024-12-05T10:10:00.984Z: Ignoring theme file templates/product.json via .shopifyignore...
2024-12-05T10:10:00.984Z: Ignoring theme file templates/search.json via .shopifyignore...
2024-12-05T10:10:00.985Z: Ignoring theme file templates/customers/activate_account.json via .shopifyignore...
2024-12-05T10:10:00.985Z: Ignoring theme file templates/customers/account.json via .shopifyignore...
2024-12-05T10:10:00.985Z: Ignoring theme file templates/customers/login.json via .shopifyignore...
2024-12-05T10:10:00.985Z: Ignoring theme file templates/customers/addresses.json via .shopifyignore...
2024-12-05T10:10:00.985Z: Ignoring theme file templates/customers/order.json via .shopifyignore...
2024-12-05T10:10:00.985Z: Ignoring theme file templates/customers/reset_password.json via .shopifyignore...
2024-12-05T10:10:00.985Z: Ignoring theme file templates/customers/register.json via .shopifyignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/.gitkeep via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/favicon.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-american-express.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-burger-menu.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-cart.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-chevron-down.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-chevron-left.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-chevron-right.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-chevron-up.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-close.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-facebook.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-instagram.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-linkedin.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-mastercard.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-pause.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-play.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-paypal.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-replay.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-sad.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-search.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-success.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-user.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-visa.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-x.svg via --ignore...
2024-12-05T10:10:00.986Z: Ignoring theme file assets/icon-youtube.svg via --ignore...
2024-12-05T10:10:00.987Z: Ignoring theme file assets/loader-white.svg via --ignore...
2024-12-05T10:10:00.987Z: Ignoring theme file assets/loader-black.svg via --ignore...
2024-12-05T10:10:00.987Z: Ignoring theme file assets/logo-short.svg via --ignore...
2024-12-05T10:10:00.987Z: Ignoring theme file assets/logo.svg via --ignore...
2024-12-05T10:10:00.987Z: Ignoring theme file config/settings_data.json via --ignore...
2024-12-05T10:10:00.987Z: Ignoring theme file config/settings_schema.json via --ignore...
2024-12-05T10:10:00.987Z: Ignoring theme file layout/theme.liquid via --ignore...
2024-12-05T10:10:00.987Z: Ignoring theme file sections/before-after.liquid via --ignore...
2024-12-05T10:10:00.987Z: Ignoring theme file sections/cart-minilines.liquid via --ignore...
2024-12-05T10:10:00.987Z: Ignoring theme file sections/cart-upsell.liquid via --ignore...
2024-12-05T10:10:00.987Z: Ignoring theme file sections/cart-lines.liquid via --ignore...
2024-12-05T10:10:00.987Z: Ignoring theme file sections/footer-group.json via --ignore...
2024-12-05T10:10:00.987Z: Ignoring theme file sections/editorial.liquid via --ignore...
2024-12-05T10:10:00.987Z: Ignoring theme file sections/footer.liquid via --ignore...
2024-12-05T10:10:00.987Z: Ignoring theme file sections/fullvisual.liquid via --ignore...
2024-12-05T10:10:00.987Z: Ignoring theme file sections/header-group.json via --ignore...
2024-12-05T10:10:00.987Z: Ignoring theme file sections/gallery.liquid via --ignore...
2024-12-05T10:10:00.987Z: Ignoring theme file sections/header.liquid via --ignore...
2024-12-05T10:10:00.987Z: Ignoring theme file sections/hero.liquid via --ignore...
2024-12-05T10:10:00.987Z: Ignoring theme file sections/instagram.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/main-article.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/main-blog.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/main-cart.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/main-collection.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/main-customers-account.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file assets/@dev-product.min.js via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/main-customers-activate_account.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/main-customers-addresses.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/main-customers-order.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/main-customers-register.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/main-customers-login.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/main-customers-reset_password.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/main-page.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/main-password.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/newsletter.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/main-product.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/main-search.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/overlay-group.json via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/panels.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/predictive-search-results.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/product-miniteaser-upsell.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/products-tabs.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/product-modal.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/offcanvas.liquid via --ignore...
2024-12-05T10:10:00.988Z: Ignoring theme file sections/products.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file sections/pushes.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file sections/recently-viewed.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file sections/reinsurance.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file sections/topbar.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file sections/video.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/article.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/block.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/account-nav.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/caesura.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file sections/richtext.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/breadcrumb.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/cart-upsell.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/drawer.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/hero.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/filters.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/icon.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/megaroll-push.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/megaroll.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/minicart.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/image.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/jsonld-for-seo.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/pagination.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/preload-tags.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/modal.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/product-miniline.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/product-miniteaser.liquid via --ignore...
2024-12-05T10:10:00.989Z: Ignoring theme file snippets/product-line.liquid via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file snippets/product-recipient-form.liquid via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file snippets/product-sticker.liquid via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file snippets/product-teaser.liquid via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file snippets/product-variant-options.liquid via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file snippets/product-variant-selector.liquid via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file snippets/rte-formatted.liquid via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file snippets/social-meta-tags.liquid via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file snippets/script-tags.liquid via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file snippets/style-tags.liquid via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file templates/404.json via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file templates/article.json via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file templates/blog.json via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file templates/cart.json via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file templates/collection.json via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file templates/gift_card.liquid via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file templates/list-collections.json via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file templates/index.json via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file templates/page.contact.liquid via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file templates/page.json via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file templates/page.style-guidelines.liquid via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file templates/password.json via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file templates/product.json via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file templates/search.json via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file templates/customers/activate_account.json via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file templates/customers/account.json via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file templates/customers/login.json via --ignore...
2024-12-05T10:10:00.990Z: Ignoring theme file templates/customers/login.recover.liquid via --ignore...
2024-12-05T10:10:00.991Z: Ignoring theme file templates/customers/addresses.json via --ignore...
2024-12-05T10:10:00.991Z: Ignoring theme file templates/customers/order.json via --ignore...
2024-12-05T10:10:00.991Z: Ignoring theme file templates/customers/reset_password.json via --ignore...
2024-12-05T10:10:00.991Z: Ignoring theme file templates/customers/register.json via --ignore...
2024-12-05T10:10:00.991Z: Ignoring theme file assets/@dev-theme.min.js via --ignore...
2024-12-05T10:10:00.991Z: Files to be uploaded:
-assets/@dev-product.min.js
-snippets/preload-tags.liquid
-snippets/script-tags.liquid
-snippets/style-tags.liquid
-assets/@dev-theme.min.js
2024-12-05T10:10:00.992Z: Uploading the following files:
-snippets/preload-tags.liquid
-snippets/script-tags.liquid
-snippets/style-tags.liquid
-assets/@dev-product.min.js
-assets/@dev-theme.min.js
╭─ error ──────────────────────────────────────────────────────────────╮
│                                                                      │
│  Failed to perform the initial theme synchronization.                │
│  Asset must have a value or attachment                               │
│                                                                      │
╰──────────────────────────────────────────────────────────────────────╯

error Command failed with exit code 1.

Reproduction steps

  1. yarn start (bundler tool)
  2. shopify theme dev
  3. Error : Failed to perform the initial theme synchronization. Asset must have a value or attachment

Operating System

macOS 14.5

Shopify CLI version (shopify --version)

3.71.3

Shell

No response

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

v20.12.2

What language and version are you using in your application?

No response

@msev msev added the Type: Bug Something isn't working label Dec 5, 2024
@tylerhellner
Copy link

tylerhellner commented Dec 5, 2024

Same. It's due to there being an empty file somewhere in your theme. Luckily, it has already been fixed in a preview version of the CLI. You'll also find a bash command in that thread to find the offending empty file and delete it if that's appropriate for you use case.

@max-techyscouts
Copy link

I had the same issue but was able to fix the issue by removing empty file.
find . -type f -empty

@lesterdefreitas
Copy link

@max-techyscouts thank goodness for that simple fix. I was nearly like: "My day is over."

@msev
Copy link
Author

msev commented Dec 6, 2024

Same. It's due to there being an empty file somewhere in your theme. Luckily, it has already been fixed in a preview version of the CLI. You'll also find a bash command in that thread to find the offending empty file and delete it if that's appropriate for you use case.

Ah, I didn't see that the problem had already been brought up.

Thanks for the information, I'm closing this issue.

@msev msev closed this as completed Dec 6, 2024
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

4 participants