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]: Shopify theme CLI add backslash(\) before slash(/) in JSON template #4745

Open
2 tasks done
max-techyscouts opened this issue Oct 25, 2024 · 2 comments
Open
2 tasks done
Labels
Area: @shopify/theme @shopify/theme package issues State: Waiting for feedback Type: Bug Something isn't working

Comments

@max-techyscouts
Copy link

max-techyscouts commented Oct 25, 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 should remain the same.
for example.
<p>test</p>

Actual behavior

It add backslash
for example
<p>test</p>
becomes
<p>test<\/p>

Verbose output

2024-10-25T03:46:23.754Z: Running command theme dev
2024-10-25T03:46:23.773Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2024-10-25T03:46:23.774Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store calpak.myshopify.com:
[]

2024-10-25T03:46:23.775Z: Getting session store...
2024-10-25T03:46:23.778Z: 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": "calpak.myshopify.com"
}
}

2024-10-25T03:46:23.781Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-10-25T03:46:23.783Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:

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

2024-10-25T03:46:24.977Z: Request to https://accounts.shopify.com/oauth/introspection completed in 1192 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/"f15e895f5b027a08960d7cca59f6673f"
  • server-timing: processing;dur=23, socket_queue;dur=1.706, edge;dur=1.018, util;dur=0.05, cfRequestDuration;dur=57.999849
  • x-request-id: 3167c9b6-fa34-4529-8426-9b0a3b3a26ba-1729827983

2024-10-25T03:46:24.981Z: The identity token is valid: true
2024-10-25T03:46:24.982Z:
The validation of the token for application/identity completed with the following results:

  • It's expired: false
  • It's invalid in identity: false

2024-10-25T03:46:24.983Z: The current session is valid but needs refresh. Refreshing...
2024-10-25T03:46:24.984Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQItajsuAYQ1eDsuAZSJggBEhBxwGq2UFtBvrcAx_RMSZI7GhDeeU2O1JlPgZhK3eAYEWa4EkDe96iWXAvgKFt-CE3s3uIfKR74WQIqq9XOMpqYyt0enrANKpxt0M8OxmdJ3mwRzziAMRqNP8ZwO_POGAgnPBwL&refresh_token=atkn_CiEItajsuAYQtcKKugaiARIKEN55TY7UmU-BmErd4BgRZrgSQA97bfsHCL8XAqVjPGW-kyas_isWb0yciGQ5Zl-T1wIBQH4KMf62Yc4uQGbPfkkPgLDiaSEJ32z1dBUYRS1c0w4&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3
With request headers:

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

2024-10-25T03:46:25.908Z: Request to https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQItajsuAYQ1eDsuAZSJggBEhBxwGq2UFtBvrcAx_RMSZI7GhDeeU2O1JlPgZhK3eAYEWa4EkDe96iWXAvgKFt-CE3s3uIfKR74WQIqq9XOMpqYyt0enrANKpxt0M8OxmdJ3mwRzziAMRqNP8ZwO_POGAgnPBwL&refresh_token=atkn_CiEItajsuAYQtcKKugaiARIKEN55TY7UmU-BmErd4BgRZrgSQA97bfsHCL8XAqVjPGW-kyas_isWb0yciGQ5Zl-T1wIBQH4KMf62Yc4uQGbPfkkPgLDiaSEJ32z1dBUYRS1c0w4&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3 completed in 923 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/"07871a99f870c84c85a7ef5c91efa0e8"
  • server-timing: processing;dur=64, socket_queue;dur=1.285, edge;dur=1.018, util;dur=0.15, cfRequestDuration;dur=107.999802
  • x-request-id: 6d0939da-2f16-48fd-8585-629af76b6af9-1729827984

2024-10-25T03:46:25.912Z: 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.69.2
  • Keep-Alive: timeout=30
  • Sec-CH-UA-PLATFORM: win32
  • Content-Type: application/json

2024-10-25T03:46:25.914Z: 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.69.2
  • Keep-Alive: timeout=30
  • Sec-CH-UA-PLATFORM: win32
  • Content-Type: application/json

2024-10-25T03:46:25.919Z: 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.69.2
  • Keep-Alive: timeout=30
  • Sec-CH-UA-PLATFORM: win32
  • Content-Type: application/json

2024-10-25T03:46:25.921Z: 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%2Fcalpak.myshopify.com%2Fadmin
With request headers:

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

2024-10-25T03:46:26.825Z: 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 906 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/"c7f441c2cc6c59c87eeb0b034f367355"
  • server-timing: processing;dur=38, socket_queue;dur=1.981, edge;dur=0.014, util;dur=0.15, cfRequestDuration;dur=72.999954
  • x-request-id: 8e3d936c-4a39-4763-b1e6-f855ac043c2d-1729827985

2024-10-25T03:46:26.828Z: 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 907 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/"c4775517256f29e810f191e2f916566c"
  • server-timing: processing;dur=40, socket_queue;dur=1.925, edge;dur=1.019, util;dur=0.05, cfRequestDuration;dur=75.000048
  • x-request-id: caf8d342-cb97-4f7a-817b-dd0471ba5498-1729827985

2024-10-25T03:46:26.833Z: 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%2Fcalpak.myshopify.com%2Fadmin completed in 910 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/"dd6b0ec7c712506a306bb81ad1753c1c"
  • server-timing: processing;dur=41, socket_queue;dur=1.934, edge;dur=1.014, util;dur=0.1, cfRequestDuration;dur=78.999996
  • x-request-id: 4e4d7e5c-3501-483e-b372-e6b2e7323d1a-1729827985

2024-10-25T03:46:26.838Z: 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 924 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/"adca4fb34e1bbcd2efdd511283215117"
  • server-timing: processing;dur=42, socket_queue;dur=1.431, edge;dur=1.026, util;dur=0.05, cfRequestDuration;dur=85.999966
  • x-request-id: 01d9a2a3-7ab3-466d-967d-19340d384817-1729827985

2024-10-25T03:46:26.841Z: Setting session store...
2024-10-25T03:46:26.845Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]

2024-10-25T03:46:26.846Z: Getting session store...
2024-10-25T03:46:26.854Z: 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-10-25T03:46:26.858Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-10-25T03:46:26.858Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:

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

2024-10-25T03:46:27.763Z: Request to https://accounts.shopify.com/oauth/introspection completed in 901 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/"a96457b31fd63690d8b255d1516068da"
  • server-timing: processing;dur=34, socket_queue;dur=1.846, edge;dur=0.02, util;dur=0.0, cfRequestDuration;dur=72.000027
  • x-request-id: 9995548a-36fd-46a6-98f3-32ec77dfda2a-1729827986

2024-10-25T03:46:27.765Z: The identity token is valid: true
2024-10-25T03:46:27.767Z:
The validation of the token for application/identity completed with the following results:

  • It's expired: false
  • It's invalid in identity: false

2024-10-25T03:46:27.773Z: Getting development theme...
2024-10-25T03:46:28.807Z: Request to https://calpak.myshopify.com/admin/api/unstable/themes/125393535034.json?fields=id%2Cname%2Crole%2Cprocessing completed in 1032 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=137, cfRequestDuration;dur=223.000050
  • x-request-id: 731f31dc-044a-493a-add8-708961d68357-1729827987

2024-10-25T03:46:28.868Z: Port 9292 is free
2024-10-25T03:46:28.890Z: Reading the content of file at .shopifyignore...
2024-10-25T03:46:28.891Z: Reading the content of file at assets/accordion.js...
2024-10-25T03:46:29.546Z: Request to https://calpak.myshopify.com/ completed in 727 ms
With response headers:

  • content-type: text/html; charset=utf-8
  • server-timing: processing;dur=9, db;dur=4, asn;desc="138915", edge;desc="IAD", country;desc="US", pageType;desc="index", servedBy;desc="6dtw", requestID;desc="1fdfa60d-9af4-437a-8d21-77a8ef7b17d8-1729827988", cfRequestDuration;dur=55.999994
  • x-request-id: 1fdfa60d-9af4-437a-8d21-77a8ef7b17d8-1729827988

2024-10-25T03:46:29.548Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2024-10-25T03:46:29.548Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store calpak.myshopify.com:
[]

2024-10-25T03:46:29.550Z: Getting session store...
2024-10-25T03:46:29.551Z: 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": "calpak.myshopify.com"
}
}

2024-10-25T03:46:29.554Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-10-25T03:46:29.555Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:

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

2024-10-25T03:46:30.437Z: Request to https://accounts.shopify.com/oauth/introspection completed in 881 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/"a96457b31fd63690d8b255d1516068da"
  • server-timing: processing;dur=24, socket_queue;dur=1.506, edge;dur=1.015, util;dur=0.05, cfRequestDuration;dur=65.000057
  • x-request-id: a52e2ffe-616b-432f-a96a-59a8477c32ff-1729827989

2024-10-25T03:46:30.439Z: The identity token is valid: true
2024-10-25T03:46:30.441Z:
The validation of the token for application/identity completed with the following results:

  • It's expired: false
  • It's invalid in identity: false

2024-10-25T03:46:30.443Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]

2024-10-25T03:46:30.444Z: Getting session store...
2024-10-25T03:46:30.445Z: 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-10-25T03:46:30.448Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-10-25T03:46:30.448Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:

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

2024-10-25T03:46:31.337Z: Request to https://accounts.shopify.com/oauth/introspection completed in 887 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/"a96457b31fd63690d8b255d1516068da"
  • server-timing: processing;dur=24, socket_queue;dur=2.217, edge;dur=0.015, util;dur=0.0, cfRequestDuration;dur=59.000015
  • x-request-id: 05bfde94-e681-4a40-95d1-3e6dadbed166-1729827990

2024-10-25T03:46:31.339Z: The identity token is valid: true
2024-10-25T03:46:31.341Z:
The validation of the token for application/identity completed with the following results:

  • It's expired: false
  • It's invalid in identity: false

2024-10-25T03:46:31.725Z: Request to https://calpak.myshopify.com/?preview_theme_id=125393535034&_fd=0&pb=0 completed in 381 ms
With response headers:

  • content-type: text/html; charset=utf-8
  • server-timing: processing;dur=13, db;dur=5, asn;desc="138915", edge;desc="IAD", country;desc="US", theme;desc="125393535034", pageType;desc="index", servedBy;desc="bx7d", requestID;desc="f740fb3c-6161-4345-bd57-e1004a407851-1729827990", cfRequestDuration;dur=92.999935
  • x-request-id: f740fb3c-6161-4345-bd57-e1004a407851-1729827990

2024-10-25T03:46:32.789Z: Request to https://calpak.myshopify.com/admin/api/unstable/themes/125393535034/assets.json?fields=key%2Cchecksum completed in 1061 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=91, cfRequestDuration;dur=167.000055
  • x-request-id: 795af1ec-4c1a-4c72-b9da-84f05d681f5c-1729827991

2024-10-25T03:46:32.820Z: Initiating theme asset reconciliation process
2024-10-25T03:46:32.820Z: Initiating theme asset reconciliation process
╭─ info ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ The files listed below differ between the local and remote versions. What would you like to do? │
│ • config/settings_data.json │
│ • templates/product.context.b2b.json │
│ • templates/product.context.united-kingdom.json │
│ • templates/product.gift_card.json │
│ • templates/product.json │
│ • templates/product.product-for-points.json │
│ │
? Reconciliation Strategy:
√ Keep the local version

2024-10-25T03:46:41.797Z: Request to https://calpak.myshopify.com/admin/api/unstable/themes/125393535034/assets.json?fields=key%2Cchecksum completed in 1020 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=103, cfRequestDuration;dur=190.000057
  • x-request-id: 28468de3-0291-4a8e-91f6-da3adbb5144e-1729828000

2024-10-25T03:46:41.840Z: Listening for changes in the theme editor
2024-10-25T03:46:41.938Z: Files to be uploaded:
-assets/facebook.svg
-assets/icon-arrow.svg
-assets/icon-rubbish.svg
-assets/icon-star-gray.svg
-assets/icon-star-black.svg
-assets/icon-wishlist-arrow.svg
-assets/linewhite.svg
-assets/instagram.svg
-assets/main.js
-assets/paypal-logo.svg
-assets/pinterest.svg
-assets/process.svg
-assets/quick-view-active.svg
-assets/quick-view-cross.svg
-assets/shopify-secure-logo.svg
-assets/swell-loader.svg
-assets/tiktok.svg
-assets/twitter.svg
-assets/youtube.svg
-config/settings_data.json
-locales/de.json
-locales/en.default.json
-locales/es.json
-locales/it.json
-locales/fr.json
-locales/ja.json
-locales/pt-BR.json
-locales/pt-PT.json
-snippets/pdp-sale-tags.liquid
-templates/404.json
-templates/cart.json
-templates/index.context.b2b.json
-templates/index.context.canada.json
-templates/index.context.united-kingdom.json
-templates/page.about.context.united-kingdom.json
-templates/collection.json
-templates/page.careers.json
-templates/page.contact.json
-templates/page.corporate-gifting.json
-templates/index.json
-templates/page.about.json
-templates/page.affiliate-program.json
-templates/page.edit-10-ways-to-pack.json
-templates/page.edit-3-piece-luggage-set.json
-templates/page.edit-backpack-pros-cons.json
-templates/page.edit-car-organizers.json
-templates/page.edit-bag-selection.json
-templates/page.edit-car-organizer.json
-templates/page.edit-compression-packing.json
-templates/page.edit-carry-on-bag.json
-templates/page.edit-duffel-backpack.json
-templates/page.edit-duffel-bags.json
-templates/page.edit-luggage-cover-2.json
-templates/page.edit-luggage-cover.json
-templates/page.edit-laptop-sleeve.json
-templates/page.edit-hat-case.json
-templates/page.edit-laptop-backpack.json
-templates/page.edit-luggage.json
-templates/page.edit-lunch-bag.json
-templates/page.edit-makeup-bag-upgrade.json
-templates/page.edit-must-have-travel.json
-templates/page.edit-organized-carry-on.json
-templates/page.edit-organizers.json
-templates/page.edit-packing-cubes.json
-templates/page.edit-shoe-bag.json
-templates/page.edit-packing-lightly.json
-templates/page.edit-perfect-travel-bag.json
-templates/page.edit-toiletry-bag.json
-templates/page.edit-tech-organizer.json
-templates/page.edit-travel-bag.json
-templates/page.edit-tote-bags.json
-templates/page.edit-travel-toiletry-bag.json
-templates/page.edit-travel-organizers.json
-templates/page.json
-templates/page.gallery.json
-templates/page.live-shop-early-access.json
-templates/page.faqs.json
-templates/page.live-shopping.json
-templates/page.mega-menu.json
-templates/page.press.json
-templates/page.product-for-points.json
-templates/page.refer.json
-templates/page.retail-store-page.json
-templates/page.returns-failover-page.json
-templates/page.returns.json
-templates/page.sign-up-10.json
-templates/page.sign-up-11.json
-templates/page.sign-up-13.json
-templates/page.sign-up-12.json
-templates/page.sign-up-2.json
-templates/page.sign-up-3.json
-templates/page.sign-up-4.json
-templates/page.sign-up-5.json
-templates/page.sign-up-7.json
-templates/page.sign-up-6.json
-templates/page.sign-up-8.json
-templates/page.sign-up-9.json
-templates/page.sign-up.json
-templates/page.story-for-duffels.json
-templates/page.story-test.json
-templates/page.test-gallery.json
-templates/page.track.json
-templates/page.tracking.json
-templates/page.vit-rewards.json
-templates/page.edit.json
-templates/password.json
-templates/page.edit-work-bags.json
-templates/page.edit-vacation-packing.json
-templates/product.context.united-kingdom.json
-templates/product.context.b2b.json
-templates/product.gift_card.json
-templates/product.json
-templates/product.product-for-points.json
-templates/customers/account.info.json
-templates/customers/account.json
-templates/customers/account.rewards.json
-templates/customers/addresses.json
-templates/customers/login.context.b2b.json
-templates/customers/order.json
-templates/customers/login.json
-templates/customers/register.json
-templates/customers/reset_password.json
2024-10-25T03:46:41.952Z: Uploading the following files:
-snippets/pdp-sale-tags.liquid
-locales/de.json
-locales/en.default.json
-locales/es.json
-locales/it.json
-locales/fr.json
-locales/ja.json
-locales/pt-BR.json
-locales/pt-PT.json
2024-10-25T03:46:41.962Z: Uploading the following files:
-assets/facebook.svg
-assets/icon-arrow.svg
-assets/icon-rubbish.svg
-assets/icon-star-gray.svg
-assets/icon-star-black.svg
-assets/icon-wishlist-arrow.svg
-assets/linewhite.svg
-assets/instagram.svg
-assets/main.js
2024-10-25T03:46:41.967Z: Uploading the following files:
-assets/paypal-logo.svg
-assets/pinterest.svg
-assets/process.svg
2024-10-25T03:46:41.971Z: Uploading the following files:
-assets/quick-view-active.svg
-assets/quick-view-cross.svg
-assets/shopify-secure-logo.svg
-assets/swell-loader.svg
-assets/tiktok.svg
-assets/twitter.svg
-assets/youtube.svg
2024-10-25T03:46:41.975Z: Uploading the following files:
-templates/404.json
-templates/cart.json
-templates/collection.json
2024-10-25T03:46:41.979Z: Uploading the following files:
-templates/page.careers.json
-templates/page.contact.json
-templates/page.corporate-gifting.json
-templates/index.json
-templates/page.about.json
-templates/page.affiliate-program.json
-templates/page.edit-10-ways-to-pack.json
-templates/page.edit-3-piece-luggage-set.json
2024-10-25T03:46:41.982Z: Uploading the following files:
-templates/page.edit-backpack-pros-cons.json
-templates/page.edit-car-organizers.json
-templates/page.edit-bag-selection.json
-templates/page.edit-car-organizer.json
-templates/page.edit-compression-packing.json
-templates/page.edit-carry-on-bag.json
-templates/page.edit-duffel-backpack.json
-templates/page.edit-duffel-bags.json
-templates/page.edit-luggage-cover-2.json
2024-10-25T03:46:41.988Z: Uploading the following files:
-templates/page.edit-luggage-cover.json
-templates/page.edit-laptop-sleeve.json
-templates/page.edit-hat-case.json
-templates/page.edit-laptop-backpack.json
-templates/page.edit-luggage.json
-templates/page.edit-lunch-bag.json
-templates/page.edit-makeup-bag-upgrade.json
-templates/page.edit-must-have-travel.json
-templates/page.edit-organized-carry-on.json
-templates/page.edit-organizers.json
2024-10-25T03:46:41.990Z: Uploading the following files:
-templates/page.edit-packing-cubes.json
-templates/page.edit-shoe-bag.json
-templates/page.edit-packing-lightly.json
-templates/page.edit-perfect-travel-bag.json
-templates/page.edit-toiletry-bag.json
-templates/page.edit-tech-organizer.json
2024-10-25T03:46:41.991Z: Uploading the following files:
-templates/page.edit-travel-bag.json
-templates/page.edit-tote-bags.json
-templates/page.edit-travel-toiletry-bag.json
-templates/page.edit-travel-organizers.json
-templates/page.json
-templates/page.gallery.json
-templates/page.live-shop-early-access.json
-templates/page.faqs.json
2024-10-25T03:46:41.993Z: Uploading the following files:
-templates/page.live-shopping.json
-templates/page.mega-menu.json
-templates/page.press.json
-templates/page.product-for-points.json
-templates/page.refer.json
-templates/page.retail-store-page.json
-templates/page.returns-failover-page.json
-templates/page.returns.json
-templates/page.sign-up-10.json
-templates/page.sign-up-11.json
2024-10-25T03:46:41.994Z: Uploading the following files:
-templates/page.sign-up-13.json
-templates/page.sign-up-12.json
-templates/page.sign-up-2.json
-templates/page.sign-up-3.json
-templates/page.sign-up-4.json
-templates/page.sign-up-5.json
-templates/page.sign-up-7.json
-templates/page.sign-up-6.json
-templates/page.sign-up-8.json
-templates/page.sign-up-9.json
2024-10-25T03:46:41.996Z: Uploading the following files:
-templates/page.sign-up.json
-templates/page.story-for-duffels.json
-templates/page.story-test.json
-templates/page.test-gallery.json
-templates/page.track.json
-templates/page.tracking.json
-templates/page.vit-rewards.json
-templates/page.edit.json
-templates/password.json
-templates/page.edit-work-bags.json
2024-10-25T03:46:41.998Z: Uploading the following files:
-templates/page.edit-vacation-packing.json
-templates/product.gift_card.json
-templates/product.json
-templates/product.product-for-points.json
-templates/customers/account.info.json
2024-10-25T03:46:42.006Z: Uploading the following files:
-templates/customers/account.json
-templates/customers/account.rewards.json
-templates/customers/addresses.json
-templates/customers/order.json
-templates/customers/login.json
-templates/customers/register.json
-templates/customers/reset_password.json
╭─ success ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Preview your theme │
│ • http://127.0.0.1:9292 [1] │
│ │
│ Next steps │
│ • Preview your gift cards [2] │
│ • Customize your theme at the theme editor [3] │
│ • Share your theme preview [4] (https://calpak.myshopify.com/?preview_theme_id=125393535034) │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
[1] http://127.0.0.1:9292
[2] http://127.0.0.1:9292/gift_cards/[store_id]/preview
[3] https://calpak.myshopify.com/admin/themes/125393535034/editor
[4] https://calpak.myshopify.com/?preview_theme_id=125393535034

2024-10-25T03:46:42.084Z:
Running system process:
· Command: npm prefix
· Working directory: E:/MAX/TechScouts/CALPAK

2024-10-25T03:46:42.347Z: Obtaining the dependency manager in directory E:\MAX\TechScouts\CALPAK...
2024-10-25T03:46:42.638Z:
Running system process:
· Command: ruby -v
· Working directory: E:/MAX/TechScouts/CALPAK

2024-10-25T03:46:43.867Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 1203 ms
With response headers:

  • x-request-id: 63dcc383-9b44-4d3f-9ec9-796e12ccbf6c

2024-10-25T03:46:43.869Z: Analytics event sent: {
"command": "theme dev",
"time_start": 1729827983756,
"time_end": 1729828002053,
"total_time": 18297,
"success": true,
"cli_version": "3.69.2",
"ruby_version": "3.2.2",
"node_version": "20.14.0",
"is_employee": false,
"uname": "windows amd64",
"env_ci": false,
"env_plugin_installed_any_custom": false,
"env_plugin_installed_shopify": "["@shopify/cli"]",
"env_shell": "cmd.exe",
"env_device_id": "ea203c954e69f780c938ab58ecb38f610115ecd9",
"env_cloud": "localhost",
"env_package_manager": "yarn",
"env_is_global": true,
"env_auth_method": "device_auth",
"cmd_app_warning_api_key_deprecation_displayed": false,
"cmd_all_timing_network_ms": 9943,
"cmd_all_timing_prompts_ms": 7717,
"cmd_all_launcher": "unknown",
"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": "605bc9655c38f9896ee6559e7d6d0b7c7a0aa38c",
"cmd_all_timing_active_ms": 635,
"cmd_all_exit": "ok",
"user_id": "6e9c9fe6-44ea-40b3-98ca-76cfcb702318",
"args": "--store calpak --theme-editor-sync --verbose",
"env_plugin_installed_all": "["@shopify/cli"]",
"metadata": "{"extraPublic":{},"extraSensitive":{}}"
}
2024-10-25T03:46:43.879Z: Completed command theme dev
2024-10-25T03:46:43.956Z: Request to https://calpak.myshopify.com/admin/api/unstable/themes/125393535034/assets/bulk.json completed in 1984 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=936, cfRequestDuration;dur=1025.999784
  • x-request-id: 75df5426-3f71-4f73-84fd-69f708a8361a-1729828001

2024-10-25T03:46:43.961Z: File Upload Results:
-assets/quick-view-active.svg: success
-assets/quick-view-cross.svg: success
-assets/shopify-secure-logo.svg: success
-assets/swell-loader.svg: success
-assets/tiktok.svg: success
-assets/twitter.svg: success
-assets/youtube.svg: success
2024-10-25T03:46:44.137Z: Request to https://calpak.myshopify.com/admin/api/unstable/themes/125393535034/assets/bulk.json completed in 2176 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=802, cfRequestDuration;dur=1579.999924
  • x-request-id: 597a95ca-cf7a-49d0-a040-174373fc0c5a-1729828001

2024-10-25T03:46:44.139Z: File Upload Results:
-snippets/pdp-sale-tags.liquid: success
-locales/de.json: success
-locales/en.default.json: success
-locales/es.json: success
-locales/it.json: success
-locales/fr.json: success
-locales/ja.json: success
-locales/pt-BR.json: success
-locales/pt-PT.json: success
2024-10-25T03:46:44.242Z: Request to https://calpak.myshopify.com/admin/api/unstable/themes/125393535034/assets/bulk.json completed in 2266 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=266, cfRequestDuration;dur=1040.999889
  • x-request-id: a3ae43a0-238a-4380-9442-422bfc4e9782-1729828002

2024-10-25T03:46:44.244Z: File Upload Results:
-templates/404.json: success
-templates/cart.json: success
-templates/collection.json: success
2024-10-25T03:46:44.883Z: Request to https://calpak.myshopify.com/admin/api/unstable/themes/125393535034/assets/bulk.json completed in 2914 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=470, cfRequestDuration;dur=1649.999857
  • x-request-id: c7de74df-0a9f-478f-a9c5-06dce8d2f33b-1729828002

2024-10-25T03:46:44.886Z: File Upload Results:
-assets/paypal-logo.svg: success
-assets/pinterest.svg: success
-assets/process.svg: success
2024-10-25T03:46:45.861Z: Request to https://calpak.myshopify.com/admin/api/unstable/themes/125393535034/assets/bulk.json completed in 3896 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=1296, cfRequestDuration;dur=2653.000116
  • x-request-id: dac0ad99-639e-4959-9175-f3717d69227a-1729828002

2024-10-25T03:46:45.863Z: File Upload Results:
-assets/facebook.svg: success
-assets/icon-arrow.svg: success
-assets/icon-rubbish.svg: success
-assets/icon-star-gray.svg: success
-assets/icon-star-black.svg: success
-assets/icon-wishlist-arrow.svg: success
-assets/linewhite.svg: success
-assets/instagram.svg: success
-assets/main.js: success
2024-10-25T03:46:46.182Z: Request to https://calpak.myshopify.com/admin/api/unstable/themes/125393535034/assets/bulk.json completed in 4202 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=2198, cfRequestDuration;dur=2977.999926
  • x-request-id: 6a04a866-abba-4f61-b060-0d6f886c538f-1729828002

2024-10-25T03:46:46.184Z: File Upload Results:
-templates/page.careers.json: success
2024-10-25T03:46:47.143Z: Request to https://calpak.myshopify.com/admin/api/unstable/themes/125393535034/assets/bulk.json completed in 2111 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=1529, cfRequestDuration;dur=1776.000023
  • x-request-id: deb2f53b-a699-4a88-8bc4-26c734aac0af-1729828004

2024-10-25T03:46:47.147Z: File Upload Results:
-templates/page.edit-packing-cubes.json: success
2024-10-25T03:46:47.227Z: Request to https://calpak.myshopify.com/admin/api/unstable/themes/125393535034/assets/bulk.json completed in 2193 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=1298, cfRequestDuration;dur=1835.999966
  • x-request-id: 231eea80-208c-473a-a74b-8284748f1b95-1729828004

2024-10-25T03:46:47.230Z: File Upload Results:
-templates/page.edit-travel-bag.json: success
2024-10-25T03:46:47.283Z: Request to https://calpak.myshopify.com/admin/api/unstable/themes/125393535034/assets/bulk.json completed in 3270 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=2182, cfRequestDuration;dur=2969.999790
  • x-request-id: 1d95a6fc-4778-4e57-9d5e-f9daedd13cc8-1729828003

2024-10-25T03:46:47.286Z: File Upload Results:
-templates/page.edit-backpack-pros-cons.json: success
2024-10-25T03:46:47.543Z: Request to https://calpak.myshopify.com/admin/api/unstable/themes/125393535034/assets/bulk.json completed in 1498 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=1032, cfRequestDuration;dur=1219.999790
  • x-request-id: 211a3a14-ebc5-4160-915a-bad495ac762f-1729828005

2024-10-25T03:46:47.545Z: File Upload Results:
-templates/page.live-shopping.json: success
2024-10-25T03:46:47.973Z: Request to https://calpak.myshopify.com/admin/api/unstable/themes/125393535034/assets/bulk.json completed in 2943 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=2413, cfRequestDuration;dur=2641.999960
  • x-request-id: b122be08-c4b2-41fd-91ab-4c3085c0c6ff-1729828004

2024-10-25T03:46:47.975Z: File Upload Results:
-templates/page.edit-luggage-cover.json: success
2024-10-25T03:46:48.597Z: Request to https://calpak.myshopify.com/admin/api/unstable/themes/125393535034/assets.json?fields=key%2Cchecksum completed in 475 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=89, cfRequestDuration;dur=171.000004
  • x-request-id: 0c071b29-9317-4390-a0b9-2091b45364ae-1729828007

2024-10-25T03:46:48.609Z: Request to https://calpak.myshopify.com/admin/api/unstable/themes/125393535034/assets/bulk.json completed in 1550 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=808, cfRequestDuration;dur=1264.999866
  • x-request-id: dc9702f3-0e4b-4409-beec-8e47e719bc5b-1729828006

2024-10-25T03:46:48.611Z: File Upload Results:
-templates/page.sign-up-13.json: success
2024-10-25T03:46:48.706Z: Reading the content of file at templates/index.json...
2024-10-25T03:46:48.706Z: Reading the content of file at templates/page.about.json...
2024-10-25T03:46:48.980Z: Request to https://calpak.myshopify.com/admin/api/unstable/themes/125393535034/assets/bulk.json completed in 901 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=460, cfRequestDuration;dur=575.000048
  • x-request-id: c402b44f-9504-41cc-9360-adea68840f55-1729828007

2024-10-25T03:46:48.984Z: File Upload Results:
-templates/customers/account.json: success
2024-10-25T03:46:49.173Z: Request to https://calpak.myshopify.com/admin/api/unstable/themes/125393535034/assets/bulk.json completed in 1095 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=557, cfRequestDuration;dur=782.999992
  • x-request-id: 2a3bbf92-21db-48b3-bec8-ef69cc00d82f-1729828007

2024-10-25T03:46:49.177Z: File Upload Results:
-templates/page.edit-vacation-packing.json: success
-templates/product.gift_card.json: success
-templates/product.json: success
-templates/product.product-for-points.json: success
-templates/customers/account.info.json: success
2024-10-25T03:46:49.301Z: Request to https://calpak.myshopify.com/admin/api/unstable/themes/125393535034/assets.json?asset%5Bkey%5D=templates%2Fpage.affiliate-program.json completed in 532 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=135, cfRequestDuration;dur=247.999907
  • x-request-id: 6757282b-f2c7-4dfa-bb96-4ab0c9131da6-1729828008

......

Reproduction steps

shopify theme dev --store "my-store" --theme-editor-sync --live-reload=full-page

Operating System

Windows 10

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

3.69.0

Shell

No response

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

No response

What language and version are you using in your application?

No response

@max-techyscouts max-techyscouts added the Type: Bug Something isn't working label Oct 25, 2024
@isaacroldan isaacroldan added the Area: @shopify/theme @shopify/theme package issues label Oct 25, 2024
@fungli227
Copy link

Please keep the approach to JSON encoding consistent across CLI and the theme customizer.
On some stores, when I do a theme pull, it added tens of file changes to my git status and it makes stuff really hard to keep track of

@lukeh-shopify
Copy link
Contributor

👋🏻 Hi @fungli227. Thanks for reporting this issue. Could you share more information to help us recreate and debug this issue?

  • What kind of workflow you are doing to encounter this issue? Would you be able to provide a video of what you're doing when you run into the issue?
  • Does it only happen with specific files or file types?

Thanks in advance

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

No branches or pull requests

4 participants