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: Local code in development is auto-syncing to the live theme #3794

Closed
2 tasks done
alexmorange opened this issue Apr 25, 2024 · 3 comments
Closed
2 tasks done

Bug: Local code in development is auto-syncing to the live theme #3794

alexmorange opened this issue Apr 25, 2024 · 3 comments
Labels
Area: @shopify/theme @shopify/theme package issues Type: Bug Something isn't working

Comments

@alexmorange
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

No code in development and on a local server should be live until deployed.

Actual behavior

While running shopify theme dev --store <site>.myshopify.com, code is automatically synced to the Shopify Theme Editor and is on the live theme. For this site, we are not using the Github integration and use webpack and shopify theme push to deploy a new theme. We have run into this issue several times in the past week on several branches with this particular site. Here is a preview of the scripts we use to deploy.

    "login:prod": "shopify theme dev --path ./shopify --store epic-provisions.myshopify.com",
    "serve": "shopify theme dev --path ./shopify",
    "deploy": "run-s webpack:build && shopify theme push --nodelete --path ./shopify",
    "deploy:new": "run-s webpack:build && shopify theme push --path ./shopify --nodelete --unpublished",
    "webpack:watch": "cross-env NODE_ENV=development BROWSERSLIST_ENV=development BROWSERSLIST_CONFIG=./.browserslistrc webpack --config ./webpack.dev.js --watch --progress",
    "webpack:build": "cross-env NODE_ENV=production BROWSERSLIST_ENV=production BROWSERSLIST_CONFIG=./.browserslistrc webpack --config webpack.prod.js --progress",

See below for verbose out, here is also the output after we save in our IDE (VScode)

EBUG GET https://epic-provisions.myshopify.com/admin/api/unstable/themes.json with request_id: 356f0b08-7e01-48dc-ac0b-140cb472f0ef-1714061594
* Syncing theme #132306763829 on epic-provisions.myshopify.com
DEBUG GET https://epic-provisions.myshopify.com/admin/api/unstable/themes/132306763829/assets.json with request_id: fe7d9d5f-95b5-42a3-a68a-b797baaff368-1714061595
DEBUG delete assets/menu-drawer.js
DEBUG delete snippets/menu-drawer.liquid
DEBUG [BulkJob #1920] job request: size=2, bytesize=87859                   33%
DEBUG DELETE https://epic-provisions.myshopify.com/admin/api/unstable/themes/132306763829/assets.json with request_id: a90dfd7c-dc00-4766-957e-e066d5be2382-1714061595
DEBUG DELETE https://epic-provisions.myshopify.com/admin/api/unstable/themes/132306763829/assets.json with request_id: 5801ce10-a86a-41df-bed5-201745525604-1714061595
DEBUG PUT https://epic-provisions.myshopify.com/admin/api/unstable/themes/132306763829/assets/bulk.json with request_id: 57903048-97ad-41f3-8d3c-422cb2a103f4-1714061595
DEBUG [BulkJob #1920] bulk rest_request time: 625.124ms
DEBUG [BulkJob #1920] job response: http_status=207
DEBUG [BulkJob #1920] bulk item success (item=layout/theme.liquid)
DEBUG [BulkJob #1920] bulk item success (item=sections/main-product.liquid) 66%
DEBUG [Bulk] shutdown, remaining_items=0                                    100%
DEBUG [BulkJob #1940] job request: size=1, bytesize=1040
DEBUG PUT https://epic-provisions.myshopify.com/admin/api/unstable/themes/132306763829/assets/bulk.json with request_id: 2890cb18-bfc8-488e-9f4d-d6e615eea592-1714061596
DEBUG [BulkJob #1940] bulk rest_request time: 203.525ms
DEBUG [BulkJob #1940] job response: http_status=207
DEBUG [BulkJob #1940] bulk item success (item=templates/product.context.b2b.json)
DEBUG [Bulk] shutdown, remaining_items=0                                    100%
                                                                            100%
[2024-04-25 12:13:17] INFO  WEBrick 1.7.0
[2024-04-25 12:13:17] INFO  ruby 3.3.1 (2024-04-23) [arm64-darwin23]
[2024-04-25 12:13:17] INFO  WEBrick::HTTPServer#start: pid=80130 port=9292
DEBUG [HotReload] Modified assets/menu-drawer.js
DEBUG update assets/menu-drawer.js
DEBUG PUT https://epic-provisions.myshopify.com/admin/api/unstable/themes/132306763829/assets.json with request_id: ef48c7b9-ac93-4fd8-b2b7-69f18c8f5700-1714061707
  • 12:15:08 Synced » update assets/menu-drawer.js
DEBUG [HotReload] Modified assets/checkout.css, assets/main.css, assets/main.js, assets/checkout.js

Also, to note, we are not using the --theme-editor-sync flag, this seems to be the inverse of that!

Verbose output

@juicymac ➜ epicprovisions.com rvm:(ruby-3.2.2) git:(main) yarn login:prod --verbose
yarn run v1.22.19
$ shopify theme dev --path ./shopify --store epic-provisions.myshopify.com --verbose
2024-04-25T16:13:12.146Z: Running command theme dev
2024-04-25T16:13:12.165Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2024-04-25T16:13:12.165Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store epic-provisions.myshopify.com:
[]

2024-04-25T16:13:12.166Z: Getting session store...
2024-04-25T16:13:12.168Z: 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": "epic-provisions.myshopify.com"
  }
}

2024-04-25T16:13:12.168Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-04-25T16:13:12.168Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.59.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-04-25T16:13:12.294Z: Request to https://accounts.shopify.com/oauth/introspection completed in 118 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/"7664b18fce910341e6dfa088f993d7c6"
 - x-request-id: 1f125de2-be60-435f-b84d-1a29b51a2c64-1714061592

2024-04-25T16:13:12.297Z: The identity token is valid: true
2024-04-25T16:13:12.297Z:
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false

2024-04-25T16:13:12.297Z: The current session is valid but needs refresh. Refreshing...
2024-04-25T16:13:12.298Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQIleKpsQYQtZqqsQZSJggBEhCQVMMBF7xDJpMzkJUpeurbGhAQXSlEpGNNuJIjPm8F3SJUEkDdCAwpStOZUyACWDcDemn6sSusxrqwOt9rr4yZK6i6Am9FkdhCtZzHBoj35fQGHU9_LyJ2NskamQcTZ0NgytoH&refresh_token=atkn_CiEIleKpsQYQlfzHsgaiARIKEBBdKUSkY024kiM-bwXdIlQSQDrq8Cqfrhxbf7VopgHoF5KcXbGfPoygtINzSqFIKAos66xpec8hZIoLkas1ZaqSrHjk7KyqJ5VW7oo4m7VPDwQ&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3
With request headers:
 - User-Agent: Shopify CLI; v=3.59.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-04-25T16:13:12.495Z: Request to https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQIleKpsQYQtZqqsQZSJggBEhCQVMMBF7xDJpMzkJUpeurbGhAQXSlEpGNNuJIjPm8F3SJUEkDdCAwpStOZUyACWDcDemn6sSusxrqwOt9rr4yZK6i6Am9FkdhCtZzHBoj35fQGHU9_LyJ2NskamQcTZ0NgytoH&refresh_token=atkn_CiEIleKpsQYQlfzHsgaiARIKEBBdKUSkY024kiM-bwXdIlQSQDrq8Cqfrhxbf7VopgHoF5KcXbGfPoygtINzSqFIKAos66xpec8hZIoLkas1ZaqSrHjk7KyqJ5VW7oo4m7VPDwQ&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3 completed in 196 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/"a694ca1baa277cee9e38ef9f7a08ea0c"
 - x-request-id: a6e58ea3-5ff9-4f0d-88d4-afb28a0e3ae2-1714061592

2024-04-25T16:13:12.498Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=271e16d403dfa18082ffb3d197bd2b5f4479c3fc32736d69296829cbb28d41a6&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.app.cli.access&subject_token=****
With request headers:
 - User-Agent: Shopify CLI; v=3.59.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-04-25T16:13:12.498Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=ee139b3d-5861-4d45-b387-1bc3ada7811c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.storefront-renderer.devtools&subject_token=****
With request headers:
 - User-Agent: Shopify CLI; v=3.59.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-04-25T16:13:12.498Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=32ff8ee5-82b8-4d93-9f8a-c6997cefb7dc&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fdestinations.readonly&subject_token=****
With request headers:
 - User-Agent: Shopify CLI; v=3.59.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-04-25T16:13:12.498Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=7ee65a63608843c577db8b23c4d7316ea0a01bd2f7594f8a9c06ea668c1b775c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.admin.graphql+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.admin.themes+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.collaborator-relationships.readonly&subject_token=****&destination=https%3A%2F%2Fepic-provisions.myshopify.com%2Fadmin
With request headers:
 - User-Agent: Shopify CLI; v=3.59.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-04-25T16:13:12.637Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=32ff8ee5-82b8-4d93-9f8a-c6997cefb7dc&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fdestinations.readonly&subject_token=**** completed in 134 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/"0286378a5c55f028636578a0a2c9f24d"
 - x-request-id: 2f54062f-9617-4aba-bec3-a72fe5c7446b-1714061592

2024-04-25T16:13:12.640Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=7ee65a63608843c577db8b23c4d7316ea0a01bd2f7594f8a9c06ea668c1b775c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.admin.graphql+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.admin.themes+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.collaborator-relationships.readonly&subject_token=****&destination=https%3A%2F%2Fepic-provisions.myshopify.com%2Fadmin completed in 137 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/"0ed4913a8e06e03c867556b152d7e6b5"
 - x-request-id: 7c6d909a-b860-4fae-98e3-1e16ca235000-1714061592

2024-04-25T16:13:12.650Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=ee139b3d-5861-4d45-b387-1bc3ada7811c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.storefront-renderer.devtools&subject_token=**** completed in 148 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/"91db40ddaa03de7635f6b006e3be489b"
 - x-request-id: 38e3da47-2abc-4f27-97c1-344d57f934b9-1714061592

2024-04-25T16:13:12.670Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=271e16d403dfa18082ffb3d197bd2b5f4479c3fc32736d69296829cbb28d41a6&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.app.cli.access&subject_token=**** completed in 170 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/"ff18133cd87a012b1007a3a90334ed96"
 - x-request-id: 20437caf-2eda-48f6-bc6d-bdda39c65411-1714061592

2024-04-25T16:13:12.671Z: Setting session store...
2024-04-25T16:13:12.679Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]

2024-04-25T16:13:12.679Z: Getting session store...
2024-04-25T16:13:12.680Z: 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-04-25T16:13:12.680Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-04-25T16:13:12.680Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.59.1
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-04-25T16:13:12.801Z: Request to https://accounts.shopify.com/oauth/introspection completed in 120 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/"5a7661a8ad5285fa3993855cdbf7e07c"
 - x-request-id: 1b019456-b1cd-4655-992c-bbf04af12cac-1714061592

2024-04-25T16:13:12.803Z: The identity token is valid: true
2024-04-25T16:13:12.803Z:
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false

2024-04-25T16:13:12.812Z:
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/ruby -v
  · Working directory: /Users/alexandermathis/dev/juicyorange/epicprovisions.com

2024-04-25T16:13:12.841Z:
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle -v
  · Working directory: /Users/alexandermathis/dev/juicyorange/epicprovisions.com

2024-04-25T16:13:12.990Z: Reading the content of file at /opt/homebrew/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/Gemfile...
2024-04-25T16:13:12.991Z:
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle install
  · Working directory: /opt/homebrew/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby

2024-04-25T16:13:13.334Z:
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle exec /opt/homebrew/opt/ruby/bin/ruby /opt/homebrew/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/bin/shopify theme token --admin atkn_Cp8DCJiCqrEGELi6qrEGYpADCAESEKg8dWRI6UUzqmLlL88I8pUaqAFodHRwczovL2FwaS5zaG9waWZ5LmNvbS9hdXRoL3BhcnRuZXJzLmNvbGxhYm9yYXRvci1yZWxhdGlvbnNoaXBzLnJlYWRvbmx5IGh0dHBzOi8vYXBpLnNob3BpZnkuY29tL2F1dGgvc2hvcC5hZG1pbi5ncmFwaHFsIGh0dHBzOi8vYXBpLnNob3BpZnkuY29tL2F1dGgvc2hvcC5hZG1pbi50aGVtZXMgDSinUzIQFeA0tLy5RiKJ4GQCRHkpQTokZDlkM2M1NjEtNDRmZS00MmJkLTg2YzQtYTU2YzVmYzM2NTZjQgdBY2NvdW50ShAfWYAc-hhORYDajpZKB7YVUlN7InN1YiI6ImZiZGIyNjQ5LWUzMjctNDkwNy04ZjY3LTkwOGQyNGNmZDdlMyIsImlzcyI6Imh0dHBzOi8vYWNjb3VudHMuc2hvcGlmeS5jb20ifWIQh_2PYQhGRXSujg7C2y4hB2oQLE4SwqR4StyCtWL8GJ7kdBJAaPUfAAkIsv33AiCa4rKBsK2y2eDfesKGAf9_tzJD0KqBbgoZ1GfYnS9Mt2t3fcpHlLH6KVrzFVBJHbO4adhhAg --sfr atkn_CqMCCJiCqrEGELi6qrEGYpQCCAESELHmMfjmJEVBiFTAW-NCrSkaPmh0dHBzOi8vYXBpLnNob3BpZnkuY29tL2F1dGgvc2hvcC5zdG9yZWZyb250LXJlbmRlcmVyLmRldnRvb2xzINhSKKdTOiRkOWQzYzU2MS00NGZlLTQyYmQtODZjNC1hNTZjNWZjMzY1NmNCB0FjY291bnRKEB9ZgBz6GE5FgNqOlkoHthVSU3sic3ViIjoiZmJkYjI2NDktZTMyNy00OTA3LThmNjctOTA4ZDI0Y2ZkN2UzIiwiaXNzIjoiaHR0cHM6Ly9hY2NvdW50cy5zaG9waWZ5LmNvbSJ9YhCH_Y9hCEZFdK6ODsLbLiEHahAsThLCpHhK3IK1YvwYnuR0EkD1KNtPLs-wUx897negk74i6Vamsem-GltqDQU78ZlK3WyMrgauPDdLyimt1tf_BE0FpvnfLDScS8l7XK1O590N
  · Working directory: /Users/alexandermathis/dev/juicyorange/epicprovisions.com

2024-04-25T16:13:13.725Z: Getting development theme...
2024-04-25T16:13:13.960Z: Request to https://epic-provisions.myshopify.com/admin/api/unstable/themes/132306763829.json?fields=id%2Cname%2Crole%2Cprocessing completed in 233 ms
With response headers:
 - content-type: application/json; charset=utf-8
 - x-request-id: 5915f4fd-70e9-444c-b24e-88a16b18c394-1714061593

╭─ success ────────────────────────────────────────────────────────────────────╮
│                                                                              │
│  Preview your theme                                                          │
│    • http://127.0.0.1:9292                                                   │
│                                                                              │
│  Next steps                                                                  │
│    • Customize your theme at the theme editor                                │
│    • Share your theme preview                                                │
│      (https://epic-provisions.myshopify.com/?preview_theme_id=132306763829)  │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

2024-04-25T16:13:14.003Z:
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/ruby -v
  · Working directory: /Users/alexandermathis/dev/juicyorange/epicprovisions.com

2024-04-25T16:13:14.009Z:
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle -v
  · Working directory: /Users/alexandermathis/dev/juicyorange/epicprovisions.com

2024-04-25T16:13:14.087Z: Reading the content of file at /opt/homebrew/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/Gemfile...
2024-04-25T16:13:14.088Z:
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle install
  · Working directory: /opt/homebrew/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby

2024-04-25T16:13:14.347Z:
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle exec /opt/homebrew/opt/ruby/bin/ruby /opt/homebrew/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/bin/shopify theme serve /Users/alexandermathis/dev/juicyorange/epicprovisions.com/shopify --live-reload hot-reload --theme 132306763829 --overwrite-json undefined
  · Working directory: /Users/alexandermathis/dev/juicyorange/epicprovisions.com

DEBUG GET https://epic-provisions.myshopify.com/admin/api/unstable/themes.json with request_id: 356f0b08-7e01-48dc-ac0b-140cb472f0ef-1714061594
* Syncing theme #132306763829 on epic-provisions.myshopify.com
DEBUG GET https://epic-provisions.myshopify.com/admin/api/unstable/themes/132306763829/assets.json with request_id: fe7d9d5f-95b5-42a3-a68a-b797baaff368-1714061595
DEBUG delete assets/menu-drawer.js
DEBUG delete snippets/menu-drawer.liquid
DEBUG [BulkJob #1920] job request: size=2, bytesize=87859                   33%
DEBUG DELETE https://epic-provisions.myshopify.com/admin/api/unstable/themes/132306763829/assets.json with request_id: a90dfd7c-dc00-4766-957e-e066d5be2382-1714061595
DEBUG DELETE https://epic-provisions.myshopify.com/admin/api/unstable/themes/132306763829/assets.json with request_id: 5801ce10-a86a-41df-bed5-201745525604-1714061595
DEBUG PUT https://epic-provisions.myshopify.com/admin/api/unstable/themes/132306763829/assets/bulk.json with request_id: 57903048-97ad-41f3-8d3c-422cb2a103f4-1714061595
DEBUG [BulkJob #1920] bulk rest_request time: 625.124ms
DEBUG [BulkJob #1920] job response: http_status=207
DEBUG [BulkJob #1920] bulk item success (item=layout/theme.liquid)
DEBUG [BulkJob #1920] bulk item success (item=sections/main-product.liquid) 66%
DEBUG [Bulk] shutdown, remaining_items=0                                    100%
DEBUG [BulkJob #1940] job request: size=1, bytesize=1040
DEBUG PUT https://epic-provisions.myshopify.com/admin/api/unstable/themes/132306763829/assets/bulk.json with request_id: 2890cb18-bfc8-488e-9f4d-d6e615eea592-1714061596
DEBUG [BulkJob #1940] bulk rest_request time: 203.525ms
DEBUG [BulkJob #1940] job response: http_status=207
DEBUG [BulkJob #1940] bulk item success (item=templates/product.context.b2b.json)
DEBUG [Bulk] shutdown, remaining_items=0                                    100%
                                                                            100%
[2024-04-25 12:13:17] INFO  WEBrick 1.7.0
[2024-04-25 12:13:17] INFO  ruby 3.3.1 (2024-04-23) [arm64-darwin23]
[2024-04-25 12:13:17] INFO  WEBrick::HTTPServer#start: pid=80130 port=9292

Reproduction steps

  1. Authenticate and log into Shopify
  2. Create and save some local changes
  3. View the live site

Operating System

MacBook Pro Sonoma 14.4.1

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

Current Shopify CLI version: 3.59.1

Shell

iTerm2

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

v20.5.0

What language and version are you using in your application?

No response

@alexmorange alexmorange added the Type: Bug Something isn't working label Apr 25, 2024
@mgmanzella mgmanzella added the Area: @shopify/theme @shopify/theme package issues label Apr 25, 2024
@mgmanzella
Copy link
Contributor

👋 thanks for reporting this issue, we'll take a look why a live theme is being used by default and not a development theme.

to unblock you, can you try passing in the theme id of a development theme:

shopify theme list # show the list of themes, choose a development theme
shopify theme dev --theme <ID>

let us know if that works as we investigate the root cause 🙏

@alexmorange
Copy link
Author

Yes, that workaround is working. Thank you for providing that!

@mgmanzella
Copy link
Contributor

closing as duplicate, referenced in the primary known issue as an example

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 Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants