Shopify / cli

Build apps, themes, and hydrogen storefronts for Shopify
https://shopify.dev
MIT License
437 stars 130 forks source link

[Bug]: Theme changes take ~30secs (sometimes minutes) to reflect #4895

Open tomgreenhill opened 2 days ago

tomgreenhill commented 2 days ago

Please confirm that you have:

In which of these areas are you experiencing a problem?

Theme

Expected behavior

I would expect code changes and customiser changes to be reflected relatively instantaneously.

Actual behavior

Changes take upwards of ~30 seconds with multiple hard refreshes to finally reflect.

Verbose output

2024-11-20T17:42:48.744Z: Reading the content of file at dist/.shopifyignore...
2024-11-20T17:42:48.744Z: Reading the content of file at dist/assets/.gitkeep...
2024-11-20T17:42:48.744Z: Reading the content of file at dist/assets/Aptos-Black.woff2...
2024-11-20T17:42:48.744Z: Reading the content of file at dist/assets/Aptos-Bold.woff2...
2024-11-20T17:42:48.744Z: Reading the content of file at dist/assets/Aptos-ExtraBold.woff2...
2024-11-20T17:42:48.744Z: Reading the content of file at dist/assets/Aptos-Light.woff2...
2024-11-20T17:42:48.744Z: Reading the content of file at dist/assets/Aptos-SemiBold.woff2...
2024-11-20T17:42:48.744Z: Reading the content of file at dist/assets/Aptos.woff2...
2024-11-20T17:42:48.744Z: Reading the content of file at dist/assets/body-scroll-lock.min.js...
2024-11-20T17:42:48.744Z: Reading the content of file at dist/assets/icon-boot.png...
2024-11-20T17:42:48.744Z: Reading the content of file at dist/assets/icon-walker.png...
2024-11-20T17:42:48.745Z: Reading the content of file at dist/assets/lazyload.min.js...
2024-11-20T17:42:48.745Z: Reading the content of file at dist/assets/main.min.css...
2024-11-20T17:42:48.745Z: Reading the content of file at dist/assets/main.min.js...
2024-11-20T17:42:48.745Z: Reading the content of file at dist/assets/sca.api.storelocator.css...
2024-11-20T17:42:48.745Z: Reading the content of file at dist/assets/sca.location-find-location.png...
2024-11-20T17:42:48.745Z: Reading the content of file at dist/assets/sca.storelocator.css...
2024-11-20T17:42:48.745Z: Reading the content of file at dist/assets/section-alternate-slideshow.min.css...
2024-11-20T17:42:48.745Z: Reading the content of file at dist/assets/section-cart.min.css...
2024-11-20T17:42:48.745Z: Reading the content of file at dist/assets/section-collection-products.min.css...
2024-11-20T17:42:48.745Z: Reading the content of file at dist/assets/section-media-banner.min.css...
2024-11-20T17:42:48.745Z: Reading the content of file at dist/assets/section-media-feature.min.css...
2024-11-20T17:42:48.745Z: Reading the content of file at dist/assets/section-page.min.css...
2024-11-20T17:42:48.745Z: Reading the content of file at dist/assets/section-product.min.css...
2024-11-20T17:42:48.745Z: Reading the content of file at dist/assets/section-search.min.css...
2024-11-20T17:42:48.745Z: Reading the content of file at dist/assets/section-timeline.min.css...
2024-11-20T17:42:48.745Z: Reading the content of file at dist/assets/slider.min.css...
2024-11-20T17:42:48.746Z: Reading the content of file at dist/assets/slider.min.js...
2024-11-20T17:42:48.746Z: Reading the content of file at dist/assets/src_js_main_accordion_accordion_ts.min.js...
2024-11-20T17:42:48.746Z: Reading the content of file at dist/assets/src_js_main_cart_cart-items_ts.min.js...
2024-11-20T17:42:48.746Z: Reading the content of file at dist/assets/src_js_main_cart_remove-button_ts.min.js...
2024-11-20T17:42:48.746Z: Reading the content of file at dist/assets/src_js_main_dialog_dialog_scss.min.css...
2024-11-20T17:42:48.746Z: Reading the content of file at dist/assets/src_js_main_dialog_dialog_scss.min.js...
2024-11-20T17:42:48.746Z: Reading the content of file at dist/assets/src_js_main_dialog_dialog_ts.min.js...
2024-11-20T17:42:48.746Z: Reading the content of file at dist/assets/src_js_main_dialog_drawer-placeholder_ts.min.js...
2024-11-20T17:42:48.746Z: Reading the content of file at dist/assets/src_js_main_facets_Facets_ts.min.js...
2024-11-20T17:42:48.746Z: Reading the content of file at dist/assets/src_js_main_facets_PriceRange_ts.min.js...
2024-11-20T17:42:48.746Z: Reading the content of file at dist/assets/src_js_main_header_Header_ts.min.js...
2024-11-20T17:42:48.746Z: Reading the content of file at dist/assets/src_js_main_modal_modal_js.min.js...
2024-11-20T17:42:48.746Z: Reading the content of file at dist/assets/src_js_main_pagination_Pagination_js.min.js...
2024-11-20T17:42:48.746Z: Reading the content of file at dist/assets/src_js_main_product_ProductForm_ts.min.js...
2024-11-20T17:42:48.746Z: Reading the content of file at dist/assets/src_js_main_product_ProductRecommendations_ts.min.js...
2024-11-20T17:42:48.746Z: Reading the content of file at dist/assets/src_js_main_product_QuantityInput_ts.min.js...
2024-11-20T17:42:48.746Z: Reading the content of file at dist/assets/src_js_main_product_VariantOptions_ts.min.js...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/assets/src_js_main_search_search_ts.min.css...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/assets/src_js_main_search_search_ts.min.js...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/assets/swatch.png...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/assets/swiper-bundle.min.css...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/assets/video-type-html5.min.js...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/assets/video-type-vimeo.min.js...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/assets/video-type-youtube.min.js...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/config/settings_data.json...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/config/settings_schema.json...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/layout/password.liquid...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/layout/theme.ajax.liquid...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/layout/theme.liquid...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/locales/en.default.json...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/sections/announcement-bar.liquid...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/sections/apps.liquid...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/sections/breadcrumbs.liquid...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/sections/call-to-actions.liquid...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/sections/collection-products.liquid...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/sections/collection-header.liquid...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/sections/contact.liquid...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/sections/dialog-drawer-placeholder.liquid...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/sections/dialog-group.json...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/sections/faq.liquid...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/sections/featured-products.liquid...
2024-11-20T17:42:48.747Z: Reading the content of file at dist/sections/footer-group.json...
2024-11-20T17:42:48.748Z: Reading the content of file at dist/sections/footer.liquid...
2024-11-20T17:42:48.748Z: Reading the content of file at dist/sections/header-group.json...
2024-11-20T17:42:48.748Z: Reading the content of file at dist/sections/header.liquid...
2024-11-20T17:42:48.748Z: Reading the content of file at dist/sections/hero.liquid...
2024-11-20T17:42:48.748Z: Reading the content of file at dist/sections/image-columns.liquid...
2024-11-20T17:42:48.748Z: Reading the content of file at dist/sections/main-account.liquid...
2024-11-20T17:42:48.748Z: Reading the content of file at dist/sections/main-activate-account.liquid...
2024-11-20T17:42:48.748Z: Reading the content of file at dist/sections/main-addresses.liquid...
2024-11-20T17:42:48.748Z: Reading the content of file at dist/sections/main-cart.liquid...
2024-11-20T17:42:48.748Z: Reading the content of file at dist/sections/main-collection-products.liquid...
2024-11-20T17:42:48.748Z: Reading the content of file at dist/sections/main-gift-card.liquid...
2024-11-20T17:42:48.748Z: Reading the content of file at dist/sections/main-login.liquid...
2024-11-20T17:42:48.748Z: Reading the content of file at dist/sections/main-order.liquid...
2024-11-20T17:42:48.748Z: Reading the content of file at dist/sections/main-page.liquid...
2024-11-20T17:42:48.748Z: Reading the content of file at dist/sections/main-password.liquid...
2024-11-20T17:42:48.748Z: Reading the content of file at dist/sections/main-product-content.liquid...
2024-11-20T17:42:48.748Z: Reading the content of file at dist/sections/main-product.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/sections/main-register.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/sections/main-reset-password.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/sections/main-search-products.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/sections/main-search.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/sections/media-banner.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/sections/media-feature.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/sections/page-not-found.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/sections/password.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/sections/predictive-search.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/sections/product-slider.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/sections/product-swatches.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/sections/rich-text.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/sections/reviews.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/sections/text-and-image.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/sections/timeline.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/snippets/block_spacing-and-color.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/snippets/card_product.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/snippets/facets_list-disclosure.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/snippets/facets_list.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/snippets/facets_main-horizontal.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/snippets/facets_price-range-disclosure.liquid...
2024-11-20T17:42:48.749Z: Reading the content of file at dist/snippets/facets_price-range.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/facets_sort-by-dropdown.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/facets_sort-by-text.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/footer_bottom.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/form-errors.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/header_predictive-search.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/highlight.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/legacy_javascript.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/link-external.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/loader.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/modal_facets.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/object_accordion.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/object_ctas.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/object_image.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/object_video.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/pagination_dynamic.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/pagination_text.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/product_buy-buttons.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/product_media-gallery.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/product_media-modal.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/product_price.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/product_quantity-input.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/product_reviews.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/product_stickers.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/product_variant-options.liquid...
2024-11-20T17:42:48.750Z: Reading the content of file at dist/snippets/product_variant-picker.liquid...
2024-11-20T17:42:48.751Z: Reading the content of file at dist/snippets/section_aspect-ratios.liquid...
2024-11-20T17:42:48.751Z: Reading the content of file at dist/snippets/section_grid.liquid...
2024-11-20T17:42:48.751Z: Reading the content of file at dist/snippets/section_slider.liquid...
2024-11-20T17:42:48.751Z: Reading the content of file at dist/snippets/section_spacing-and-color.liquid...
2024-11-20T17:42:48.751Z: Reading the content of file at dist/snippets/share.liquid...
2024-11-20T17:42:48.751Z: Reading the content of file at dist/snippets/theme_assets.liquid...
2024-11-20T17:42:48.751Z: Reading the content of file at dist/snippets/theme_breadcrumbs.liquid...
2024-11-20T17:42:48.751Z: Reading the content of file at dist/snippets/theme_icons.liquid...
2024-11-20T17:42:48.751Z: Reading the content of file at dist/snippets/theme_head.liquid...
2024-11-20T17:42:48.751Z: Reading the content of file at dist/snippets/theme_seo.liquid...
2024-11-20T17:42:48.751Z: Reading the content of file at dist/templates/article.json...
2024-11-20T17:42:48.751Z: Reading the content of file at dist/templates/blog.help-center.json...
2024-11-20T17:42:48.751Z: Reading the content of file at dist/templates/blog.json...
2024-11-20T17:42:48.751Z: Reading the content of file at dist/templates/cart.json...
2024-11-20T17:42:48.751Z: Reading the content of file at dist/templates/404.json...
2024-11-20T17:42:48.751Z: Reading the content of file at dist/templates/collection.json...
2024-11-20T17:42:48.751Z: Reading the content of file at dist/templates/collection.list.json...
2024-11-20T17:42:48.751Z: Reading the content of file at dist/templates/gift_card.liquid...
2024-11-20T17:42:48.751Z: Reading the content of file at dist/templates/index.json...
2024-11-20T17:42:48.751Z: Reading the content of file at dist/templates/list-collections.json...
2024-11-20T17:42:48.752Z: Reading the content of file at dist/templates/page.boot-camp.json...
2024-11-20T17:42:48.752Z: Reading the content of file at dist/templates/page.contact.json...
2024-11-20T17:42:48.752Z: Reading the content of file at dist/templates/page.faq.json...
2024-11-20T17:42:48.752Z: Reading the content of file at dist/templates/page.json...
2024-11-20T17:42:48.752Z: Reading the content of file at dist/templates/page.reviews.json...
2024-11-20T17:42:48.752Z: Reading the content of file at dist/templates/page.sca-storelocator.json...
2024-11-20T17:42:48.752Z: Reading the content of file at dist/templates/password.json...
2024-11-20T17:42:48.752Z: Reading the content of file at dist/templates/product.json...
2024-11-20T17:42:48.752Z: Reading the content of file at dist/templates/search.json...
2024-11-20T17:42:48.752Z: Reading the content of file at dist/templates/customers/activate_account.json...
2024-11-20T17:42:48.752Z: Reading the content of file at dist/templates/customers/account.json...
2024-11-20T17:42:48.752Z: Reading the content of file at dist/templates/customers/addresses.json...
2024-11-20T17:42:48.752Z: Reading the content of file at dist/templates/customers/login.json...
2024-11-20T17:42:48.752Z: Reading the content of file at dist/templates/customers/order.json...
2024-11-20T17:42:48.752Z: Reading the content of file at dist/templates/customers/register.json...
2024-11-20T17:42:48.752Z: Reading the content of file at dist/templates/customers/reset_password.json...
2024-11-20T17:42:48.832Z: Request to https://redacted.myshopify.com/ completed in 107 ms
With response headers:
 - content-type: text/html; charset=utf-8
 - server-timing: processing;dur=10, db;dur=4, db_async;dur=1.772, asn;desc="51207", edge;desc="CDG", country;desc="FR", pageType;desc="index", servedBy;desc="fgq7", requestID;desc="ff355b91-6f86-48b5-9147-9d1a982c7d7e-1732124568", cfRequestDuration;dur=47.999859
 - x-request-id: ff355b91-6f86-48b5-9147-9d1a982c7d7e-1732124568

2024-11-20T17:42:48.832Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2024-11-20T17:42:48.832Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store redacted.myshopify.com:
[]

2024-11-20T17:42:48.832Z: Getting session store...
2024-11-20T17:42:48.833Z: 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": "redacted.myshopify.com"
  }
}

2024-11-20T17:42:48.833Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-11-20T17:42:48.833Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.69.4
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-11-20T17:42:49.158Z: Request to https://accounts.shopify.com/oauth/introspection completed in 325 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/"9b0dacf56480ea7c778a19a69afcebf7"
 - server-timing: processing;dur=28, socket_queue;dur=1.294, edge;dur=2.015, util;dur=0.05, cfRequestDuration;dur=149.999857
 - x-request-id: 9cfa266b-8c32-4b8c-a777-09297448fffb-1732124569

2024-11-20T17:42:49.159Z: The identity token is valid: true
2024-11-20T17:42:49.159Z: 
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false

2024-11-20T17:42:49.159Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]

2024-11-20T17:42:49.159Z: Getting session store...
2024-11-20T17:42:49.160Z: 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-11-20T17:42:49.160Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-11-20T17:42:49.160Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.69.4
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-11-20T17:42:49.554Z: Request to https://accounts.shopify.com/oauth/introspection completed in 394 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/"9b0dacf56480ea7c778a19a69afcebf7"
 - server-timing: processing;dur=23, socket_queue;dur=1.099, edge;dur=1.02, util;dur=0.15, cfRequestDuration;dur=167.999983
 - x-request-id: b38105a1-12a4-4c9e-ac11-e17d8e417174-1732124569

2024-11-20T17:42:49.555Z: The identity token is valid: true
2024-11-20T17:42:49.555Z: 
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false

2024-11-20T17:42:49.715Z: Request to https://redacted.myshopify.com/?preview_theme_id=172943311234&_fd=0&pb=0 completed in 160 ms
With response headers:
 - content-type: text/html; charset=utf-8
 - server-timing: processing;dur=47;desc="gc:2", db;dur=9, db_async;dur=1.541, asn;desc="51207", edge;desc="CDG", country;desc="FR", theme;desc="172943311234", pageType;desc="index", servedBy;desc="9nn9", requestID;desc="c4565083-6880-443a-8dda-8717f0b6b5da-1732124569", cfRequestDuration;dur=87.000132
 - x-request-id: c4565083-6880-443a-8dda-8717f0b6b5da-1732124569

75% sealing chunk optimization SplitChunksPlugin2024-11-20T17:42:50.027Z: Request to https://redacted.myshopify.com/admin/api/unstable/themes/172943311234/assets.json?fields=key%2Cchecksum completed in 311 ms
With response headers:
 - content-type: application/json; charset=utf-8
 - server-timing: processing;dur=51, cfRequestDuration;dur=108.000040
 - x-request-id: 16a7f914-d6ba-48bc-bb0e-7068e98ee5ce-1732124569

82% sealing chunk reviving RecordIdsPlugin2024-11-20T17:42:50.028Z: Initiating theme asset reconciliation process
2024-11-20T17:42:50.028Z: Initiating theme asset reconciliation process
87% sealing code generation2024-11-20T17:42:50.030Z: Ignoring theme file config/settings_data.json via .shopifyignore...
2024-11-20T17:42:50.030Z: Ignoring theme file sections/dialog-group.json via .shopifyignore...
88% sealing runtime requirements2024-11-20T17:42:50.031Z: Ignoring theme file sections/footer-group.json via .shopifyignore...
2024-11-20T17:42:50.031Z: Ignoring theme file sections/header-group.json via .shopifyignore...
2024-11-20T17:42:50.031Z: Ignoring theme file templates/customers/account.json via .shopifyignore...
2024-11-20T17:42:50.031Z: Ignoring theme file templates/customers/activate_account.json via .shopifyignore...
2024-11-20T17:42:50.031Z: Ignoring theme file templates/customers/addresses.json via .shopifyignore...
2024-11-20T17:42:50.031Z: Ignoring theme file templates/customers/login.json via .shopifyignore...
2024-11-20T17:42:50.031Z: Ignoring theme file templates/customers/order.json via .shopifyignore...
2024-11-20T17:42:50.031Z: Ignoring theme file templates/customers/register.json via .shopifyignore...
2024-11-20T17:42:50.031Z: Ignoring theme file templates/customers/reset_password.json via .shopifyignore...
2024-11-20T17:42:50.031Z: Local and remote checksums match - no need to reconcile theme assets

2024-11-20T17:42:50.240Z: Request to https://redacted.myshopify.com/admin/api/unstable/themes/172943311234/assets.json?fields=key%2Cchecksum completed in 208 ms
With response headers:
 - content-type: application/json; charset=utf-8
 - server-timing: processing;dur=50, cfRequestDuration;dur=99.999905
 - x-request-id: 8054c970-8243-4772-9121-1fcc4b24d01a-1732124570

2024-11-20T17:42:50.241Z: Listening for changes in the theme editor
2024-11-20T17:42:50.244Z: Ignoring theme file config/settings_data.json via .shopifyignore...
2024-11-20T17:42:50.244Z: Ignoring theme file sections/dialog-group.json via .shopifyignore...
2024-11-20T17:42:50.244Z: Ignoring theme file sections/footer-group.json via .shopifyignore...
2024-11-20T17:42:50.245Z: Ignoring theme file sections/header-group.json via .shopifyignore...
2024-11-20T17:42:50.248Z: Ignoring theme file templates/customers/account.json via .shopifyignore...
2024-11-20T17:42:50.248Z: Ignoring theme file templates/customers/activate_account.json via .shopifyignore...
2024-11-20T17:42:50.248Z: Ignoring theme file templates/customers/addresses.json via .shopifyignore...
2024-11-20T17:42:50.248Z: Ignoring theme file templates/customers/login.json via .shopifyignore...
2024-11-20T17:42:50.248Z: Ignoring theme file templates/customers/register.json via .shopifyignore...
2024-11-20T17:42:50.248Z: Ignoring theme file templates/customers/order.json via .shopifyignore...
2024-11-20T17:42:50.248Z: Ignoring theme file templates/customers/reset_password.json via .shopifyignore...
2024-11-20T17:42:50.248Z: Files to be uploaded:

2024-11-20T17:42:50.250Z: Ignoring theme file config/settings_data.json via .shopifyignore...
2024-11-20T17:42:50.251Z: Ignoring theme file sections/dialog-group.json via .shopifyignore...
2024-11-20T17:42:50.251Z: Ignoring theme file sections/footer-group.json via .shopifyignore...
2024-11-20T17:42:50.251Z: Ignoring theme file sections/header-group.json via .shopifyignore...
2024-11-20T17:42:50.253Z: Ignoring theme file templates/customers/account.json via .shopifyignore...
2024-11-20T17:42:50.253Z: Ignoring theme file templates/customers/activate_account.json via .shopifyignore...
2024-11-20T17:42:50.253Z: Ignoring theme file templates/customers/addresses.json via .shopifyignore...
2024-11-20T17:42:50.253Z: Ignoring theme file templates/customers/login.json via .shopifyignore...
2024-11-20T17:42:50.254Z: Ignoring theme file templates/customers/order.json via .shopifyignore...
2024-11-20T17:42:50.255Z: Ignoring theme file templates/customers/register.json via .shopifyignore...
2024-11-20T17:42:50.255Z: Ignoring theme file templates/customers/reset_password.json via .shopifyignore...
2024-11-20T17:42:50.255Z: Files to be deleted:
-snippets/svg-icon-link-external.svg
╭─ success ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                                                                     │
│  Preview your theme                                                                                                                                                                                 │
│    • http://localhost:3000                                                                                                                                                                          │
│                                                                                                                                                                                                     │
│  Next steps                                                                                                                                                                                         │
│    • Preview your gift cards                                                                                                                                                                        │
│    • Customize your theme at the theme editor                                                                                                                                                       │
│    • Share your theme preview (https://redacted.myshopify.com/?preview_theme_id=172943311234)                                                                                                        │
│                                                                                                                                                                                                     │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

2024-11-20T17:42:50.274Z: 
Running system process:
  · Command: npm prefix
  · Working directory: /Users/tomgreenhill/Sites/redacted-redacted

2024-11-20T17:42:50.420Z: Obtaining the dependency manager in directory /Users/tomgreenhill/Sites/redacted-redacted...
2024-11-20T17:42:50.549Z: 
Running system process:
  · Command: ruby -v
  · Working directory: /Users/tomgreenhill/Sites/redacted-redacted

2024-11-20T17:42:50.958Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 348 ms
With response headers:
 - x-request-id: 64b1c133-9cd0-4508-8d6a-ec090b574b9f

2024-11-20T17:42:50.959Z: Analytics event sent: {
  "command": "theme dev",
  "time_start": 1732124566643,
  "time_end": 1732124570269,
  "total_time": 3626,
  "success": true,
  "cli_version": "3.69.4",
  "ruby_version": "3.1.2",
  "node_version": "22.8.0",
  "is_employee": false,
  "uname": "darwin arm64",
  "env_ci": false,
  "env_plugin_installed_any_custom": false,
  "env_plugin_installed_shopify": "[\"@shopify/cli\"]",
  "env_shell": "zsh",
  "env_device_id": "e37797effb47f26ca0cfbe78cfff8a29273236a6",
  "env_cloud": "localhost",
  "env_package_manager": "pnpm",
  "env_is_global": true,
  "env_auth_method": "device_auth",
  "cmd_app_warning_api_key_deprecation_displayed": false,
  "cmd_all_timing_network_ms": 3528,
  "cmd_all_timing_prompts_ms": 0,
  "cmd_all_launcher": "pnpm",
  "cmd_all_topic": "theme",
  "cmd_all_plugin": "@shopify/theme",
  "cmd_all_force": false,
  "cmd_all_verbose": true,
  "cmd_all_path_override": true,
  "cmd_all_path_override_hash": "128db1512c7d339ae081efa1e948e6a671e56694",
  "cmd_all_timing_active_ms": 97,
  "cmd_all_exit": "ok",
  "user_id": "176da5a3-8157-40d3-a956-7a590eccb1b0",
  "args": "-e local --theme-editor-sync --verbose",
  "cmd_all_environment_flags": "{\"store\":\"redacted\",\"path\":\"./dist\",\"host\":\"localhost\",\"port\":3000,\"theme-editor-sync\":true}",
  "env_plugin_installed_all": "[\"@shopify/cli\"]",
  "metadata": "{\"extraPublic\":{},\"extraSensitive\":{}}"
}
2024-11-20T17:42:50.959Z: Completed command theme dev
2024-11-20T17:42:53.258Z: Ignoring theme file config/settings_data.json via .shopifyignore...
2024-11-20T17:42:53.258Z: Ignoring theme file sections/dialog-group.json via .shopifyignore...
2024-11-20T17:42:53.258Z: Ignoring theme file sections/footer-group.json via .shopifyignore...
2024-11-20T17:42:53.258Z: Ignoring theme file sections/header-group.json via .shopifyignore...
2024-11-20T17:42:53.260Z: Ignoring theme file templates/customers/account.json via .shopifyignore...
2024-11-20T17:42:53.261Z: Ignoring theme file templates/customers/activate_account.json via .shopifyignore...
2024-11-20T17:42:53.261Z: Ignoring theme file templates/customers/addresses.json via .shopifyignore...
2024-11-20T17:42:53.261Z: Ignoring theme file templates/customers/login.json via .shopifyignore...
2024-11-20T17:42:53.261Z: Ignoring theme file templates/customers/order.json via .shopifyignore...
2024-11-20T17:42:53.261Z: Ignoring theme file templates/customers/register.json via .shopifyignore...
2024-11-20T17:42:53.261Z: Ignoring theme file templates/customers/reset_password.json via .shopifyignore...
2024-11-20T17:42:53.456Z: Request to https://redacted.myshopify.com/admin/api/unstable/themes/172943311234/assets.json?fields=key%2Cchecksum completed in 195 ms
With response headers:
 - content-type: application/json; charset=utf-8
 - server-timing: processing;dur=54, cfRequestDuration;dur=101.000071
 - x-request-id: 06c2dc5c-41ce-45b8-896b-1071b24e1f24-1732124573

2024-11-20T17:42:53.462Z: Ignoring theme file config/settings_data.json via .shopifyignore...
2024-11-20T17:42:53.463Z: Ignoring theme file sections/dialog-group.json via .shopifyignore...
2024-11-20T17:42:53.463Z: Ignoring theme file sections/footer-group.json via .shopifyignore...
2024-11-20T17:42:53.463Z: Ignoring theme file sections/header-group.json via .shopifyignore...
2024-11-20T17:42:53.465Z: Ignoring theme file templates/customers/account.json via .shopifyignore...
2024-11-20T17:42:53.465Z: Ignoring theme file templates/customers/activate_account.json via .shopifyignore...
2024-11-20T17:42:53.465Z: Ignoring theme file templates/customers/addresses.json via .shopifyignore...
2024-11-20T17:42:53.465Z: Ignoring theme file templates/customers/login.json via .shopifyignore...
2024-11-20T17:42:53.465Z: Ignoring theme file templates/customers/order.json via .shopifyignore...
2024-11-20T17:42:53.465Z: Ignoring theme file templates/customers/register.json via .shopifyignore...
2024-11-20T17:42:53.465Z: Ignoring theme file templates/customers/reset_password.json via .shopifyignore...
2024-11-20T17:42:56.673Z: Request to https://redacted.myshopify.com/admin/api/unstable/themes/172943311234/assets.json?fields=key%2Cchecksum completed in 205 ms
With response headers:
 - content-type: application/json; charset=utf-8
 - server-timing: processing;dur=77, cfRequestDuration;dur=128.999949
 - x-request-id: 96b5c5c4-3dc1-4632-b228-935ce278f464-1732124576

2024-11-20T17:42:56.675Z: Ignoring theme file config/settings_data.json via .shopifyignore...
2024-11-20T17:42:56.675Z: Ignoring theme file sections/dialog-group.json via .shopifyignore...
2024-11-20T17:42:56.675Z: Ignoring theme file sections/footer-group.json via .shopifyignore...
2024-11-20T17:42:56.675Z: Ignoring theme file sections/header-group.json via .shopifyignore...
2024-11-20T17:42:56.677Z: Ignoring theme file templates/customers/account.json via .shopifyignore...
2024-11-20T17:42:56.677Z: Ignoring theme file templates/customers/activate_account.json via .shopifyignore...
2024-11-20T17:42:56.677Z: Ignoring theme file templates/customers/addresses.json via .shopifyignore...
2024-11-20T17:42:56.677Z: Ignoring theme file templates/customers/login.json via .shopifyignore...
2024-11-20T17:42:56.677Z: Ignoring theme file templates/customers/order.json via .shopifyignore...
2024-11-20T17:42:56.677Z: Ignoring theme file templates/customers/register.json via .shopifyignore...
2024-11-20T17:42:56.677Z: Ignoring theme file templates/customers/reset_password.json via .shopifyignore...
2024-11-20T17:42:59.878Z: Request to https://redacted.myshopify.com/admin/api/unstable/themes/172943311234/assets.json?fields=key%2Cchecksum completed in 199 ms
With response headers:
 - content-type: application/json; charset=utf-8
 - server-timing: processing;dur=50, cfRequestDuration;dur=111.000061
 - x-request-id: d0a0d19a-3328-4424-88cd-a01e87ee01c9-1732124579

2024-11-20T17:42:59.886Z: Ignoring theme file config/settings_data.json via .shopifyignore...
2024-11-20T17:42:59.887Z: Ignoring theme file sections/dialog-group.json via .shopifyignore...
2024-11-20T17:42:59.887Z: Ignoring theme file sections/footer-group.json via .shopifyignore...
2024-11-20T17:42:59.887Z: Ignoring theme file sections/header-group.json via .shopifyignore...
2024-11-20T17:42:59.888Z: Ignoring theme file templates/customers/account.json via .shopifyignore...
2024-11-20T17:42:59.888Z: Ignoring theme file templates/customers/activate_account.json via .shopifyignore...
2024-11-20T17:42:59.888Z: Ignoring theme file templates/customers/addresses.json via .shopifyignore...
2024-11-20T17:42:59.888Z: Ignoring theme file templates/customers/login.json via .shopifyignore...
2024-11-20T17:42:59.888Z: Ignoring theme file templates/customers/order.json via .shopifyignore...
2024-11-20T17:42:59.888Z: Ignoring theme file templates/customers/register.json via .shopifyignore...
2024-11-20T17:42:59.888Z: Ignoring theme file templates/customers/reset_password.json via .shopifyignore...
2024-11-20T17:43:03.076Z: Request to https://redacted.myshopify.com/admin/api/unstable/themes/172943311234/assets.json?fields=key%2Cchecksum completed in 185 ms
With response headers:
 - content-type: application/json; charset=utf-8
 - server-timing: processing;dur=55, cfRequestDuration;dur=116.999865
 - x-request-id: 4a5b34a3-4313-4ab8-92ba-3e3796631be6-1732124582

Reproduction steps

  1. run wait-on dist && shopify theme dev -e local --theme-editor-sync
  2. make code changes
  3. changes take a long time

Operating System

macOS 14.6.1 (23G93) MBP M1 MAX

Shopify CLI version (check your project's package.json if you're not sure)

@shopify/cli/3.70.0

Shell

zsh

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

v22.8.0

What language and version are you using in your application?

Liquid

mgmanzella commented 2 days ago

👋 it seems you're using an old version of the CLI that still uses ruby, can you try with the latest version to see if youre still getting syncing issues? version 3.70.0 is completely in typescript now and should have a way faster dev server/remote syncing. let us know 🙏

lukeh-shopify commented 2 days ago

👋 it seems you're using an old version of the CLI that still uses ruby, can you try with the latest version to see if youre still getting syncing issues? version 3.70.0 is completely in typescript now and should have a way faster dev server/remote syncing. let us know 🙏

@mgmanzella - @tomgreenhill reported this on the Partners Slack and I asked them to create this issue. It sounds like the issue they're having is changes taking a while to reflect on their preview in the browser, and not the actual file sync taking a long time. Is that correct @tomgreenhill ?

tomgreenhill commented 1 day ago

hey @lukeh-shopify, yeah apologies @mgmanzella , just re-read my post and noticed I wasn't clear! Been a long few weeks. Changes are pushed up as quick as I would expect but it's within the browser where I'm having issues.

Hard refresh does nothing, incognito does nothing, customiser changes taking ages too. I'm not sure if it's store specific as I've not been working on any others for a few weeks now.

Let me know if there's any further info I can provide, happy to help—thanks!

mgmanzella commented 1 day ago

there's a bunch of fixes for theme commands in 3.70 that im wondering if you're experiencing a side effect of one of those bugs. so i would still upgrade if you can @tomgreenhill and let us know 🙏 if it's still an issue can you reshare your verbose logs? that will also give us fresh request ids when we spelunk in logs 😌

and huge thank you for opening an issue outside the partners slack