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 app dev' command not updating dev preview with changes #4234

Open
2 tasks done
Lisa-C-27 opened this issue Jul 24, 2024 · 10 comments
Open
2 tasks done
Labels
Type: Bug Something isn't working

Comments

@Lisa-C-27
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?

App, Extension

Expected behavior

When running the shopify app dev command you should be able to preview development updates on a dev store immediately. In the past have just run shopify app deploy instead and it would immediately update, but this is not viable once the app has been published to a client store.

Actual behavior

Most of the time it is not updating with the newest changes. Sometimes when first running the command it will recognise the first couple of changes and then it will stop recognising changes until maybe coming back and restarting a few hours later.

Verbose output

I tried to do the verbose flag on the shopify app dev command but it is so long the beginning gets cut-off, and keeps updating every few seconds. So not sure which part to try and copy and paste here.

Reproduction steps

  1. Already have an app (checkout extension) connected to a dev store and published to a client store
  2. Run shopify app dev
  3. Make some changes to your extension
  4. Preview your changes
  5. Make some more changes to your extension
  6. Preview your changes again

Operating System

Windows 11

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

3.64.1

Shell

VS terminal

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

v20.13.1

What language and version are you using in your application?

No response

@Lisa-C-27 Lisa-C-27 added the Type: Bug Something isn't working label Jul 24, 2024
@gonzaloriestra
Copy link
Contributor

Hi, I'm not able to reproduce it.

Could you try with shopify app dev --verbose and share the latest part, right after you start making changes in the code? You should see something like Extension file at path C:\Users\whatever\... changed and then a websocket update event.

@Lisa-C-27
Copy link
Author

Lisa-C-27 commented Jul 24, 2024

08:39:55 │ pre-purchase-product-offe │ 2024-07-24T22:39:55.076Z: Extension file at path C:\Users\lisa\OneDrive\Documents\GitHub\wod-life-app\extensions\pre-purchase-product-offer\src\Checkout.jsx changed
08:39:55 │ pre-purchase-product-offe │ Bundling UI extension pre-purchase-product-offer...
2024-07-24T22:39:55.107Z: Deduplicating React dependency for C:/Users/lisa/OneDrive/Documents/GitHub/wod-life-app/extensions/pre-purchase-product-offer, using C:\Users\lisa\OneDrive\Documents\GitHub\wod-life-app\node_modules\react\index.js
2024-07-24T22:39:55.111Z: Reading the content of file at extensions/pre-purchase-product-offer/shopify.extension.toml...
2024-07-24T22:39:55.121Z: Reading the content of file at extensions/pre-purchase-product-offer/shopify.extension.toml...
2024-07-24T22:39:55.189Z: Sending "Partners" GraphQL request:
query FindAppPreviewMode($apiKey: String!) {
app(apiKey: $apiKey) {
developmentStorePreviewEnabled
}
}

With variables:
{
"apiKey": "*****"
}

With request headers:

User-Agent: Shopify CLI; v=3.64.1
Keep-Alive: timeout=30
Sec-CH-UA-PLATFORM: win32
Content-Type: application/json
08:39:55 │ pre-purchase-product-offe │ pre-purchase-product-offer successfully built
2024-07-24T22:39:55.258Z: Reading the content of file at extensions/pre-purchase-product-offer/dist/pre-purchase-product-offer.js...
08:39:55 │ pre-purchase-product-offe │ 2024-07-24T22:39:55.327Z: The Javascript bundle of the UI extension with ID c56c009c-acf2-4273-9044-fc64eee2cd52 has changed
2024-07-24T22:39:55.334Z: Reading the content of file at extensions/pre-purchase-product-offer/locales/en.default.json...
2024-07-24T22:39:55.335Z: Reading the content of file at extensions/pre-purchase-product-offer/locales/fr.json...
08:39:55 │ pre-purchase-product-offe │ Parsed locales for extension pre-purchase-product-offer at C:/Users/lisa/OneDrive/Documents/GitHub/wod-life-app/extensions/pre-purchase-product-offer
2024-07-24T22:39:55.346Z: Getting last updated timestamp for file at extensions/pre-purchase-product-offer/dist/pre-purchase-product-offer.js...
08:39:55 │ pre-purchase-product-offe │ 2024-07-24T22:39:55.347Z: Sending websocket update event to the websocket clients:
08:39:55 │ pre-purchase-product-offe │ {
08:39:55 │ pre-purchase-product-offe │ "event": "update",
08:39:55 │ pre-purchase-product-offe │ "version": "3",
08:39:55 │ pre-purchase-product-offe │ "data": {
08:39:55 │ pre-purchase-product-offe │ "app": {
08:39:55 │ pre-purchase-product-offe │ "title": "wod-life-app",
08:39:55 │ pre-purchase-product-offe │ "apiKey": "ec47fb94b2de797ca0eda0440f5081da",
08:39:55 │ pre-purchase-product-offe │ "url": "https://arkhi-checkout-ext-dev.myshopify.com/admin/oauth/redirect_from_cli?client_id=ec47fb94b2de797ca0eda0440f5081da",
08:39:55 │ pre-purchase-product-offe │ "mobileUrl":
"https://arkhi-checkout-ext-dev.myshopify.com/admin/apps/ec47fb94b2de797ca0eda0440f5081da?shop=arkhi-checkout-ext-dev.myshopify.com&host=YXJraGktY2hlY2tvdXQtZXh0LWRldi5teXNob3BpZnkuY29tL2FkbWluL2FwcHMvZWM0N2ZiOTRiMmRlNzk3Y2EwZWRhMDQ0MGY1MDgxZGE"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "appId": "98216214529",
08:39:55 │ pre-purchase-product-offe │ "version": "3",
08:39:55 │ pre-purchase-product-offe │ "root": {
08:39:55 │ pre-purchase-product-offe │ "url": "https://friendship-gary-viral-fm.trycloudflare.com/extensions"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "socket": {
08:39:55 │ pre-purchase-product-offe │ "url": "wss://friendship-gary-viral-fm.trycloudflare.com/extensions"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "devConsole": {
08:39:55 │ pre-purchase-product-offe │ "url": "https://friendship-gary-viral-fm.trycloudflare.com/extensions/dev-console"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "store": "arkhi-checkout-ext-dev.myshopify.com",
08:39:55 │ pre-purchase-product-offe │ "extensions": [
08:39:55 │ pre-purchase-product-offe │ {
08:39:55 │ pre-purchase-product-offe │ "assets": {
08:39:55 │ pre-purchase-product-offe │ "main": {
08:39:55 │ pre-purchase-product-offe │ "name": "main",
08:39:55 │ pre-purchase-product-offe │ "url": "https://friendship-gary-viral-fm.trycloudflare.com/extensions/c56c009c-acf2-4273-9044-fc64eee2cd52/assets/pre-purchase-product-offer.js",
08:39:55 │ pre-purchase-product-offe │ "lastUpdated": 1721860795326
08:39:55 │ pre-purchase-product-offe │ }
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "capabilities": {
08:39:55 │ pre-purchase-product-offe │ "blockProgress": false,
08:39:55 │ pre-purchase-product-offe │ "networkAccess": false,
08:39:55 │ pre-purchase-product-offe │ "apiAccess": true,
08:39:55 │ pre-purchase-product-offe │ "collectBuyerConsent": {
08:39:55 │ pre-purchase-product-offe │ "smsMarketing": false,
08:39:55 │ pre-purchase-product-offe │ "customerPrivacy": false
08:39:55 │ pre-purchase-product-offe │ }
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "development": {
08:39:55 │ pre-purchase-product-offe │ "status": "success",
08:39:55 │ pre-purchase-product-offe │ "resource": {
08:39:55 │ pre-purchase-product-offe │ "url": ""
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "root": {
08:39:55 │ pre-purchase-product-offe │ "url": "https://friendship-gary-viral-fm.trycloudflare.com/extensions/c56c009c-acf2-4273-9044-fc64eee2cd52"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "hidden": false,
08:39:55 │ pre-purchase-product-offe │ "localizationStatus": "success"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "extensionPoints": [
08:39:55 │ pre-purchase-product-offe │ {
08:39:55 │ pre-purchase-product-offe │ "target": "purchase.checkout.block.render",
08:39:55 │ pre-purchase-product-offe │ "module": "./src/Checkout.jsx",
08:39:55 │ pre-purchase-product-offe │ "metafields": [],
08:39:55 │ pre-purchase-product-offe │ "surface": "checkout",
08:39:55 │ pre-purchase-product-offe │ "root": {
08:39:55 │ pre-purchase-product-offe │ "url": "https://friendship-gary-viral-fm.trycloudflare.com/extensions/c56c009c-acf2-4273-9044-fc64eee2cd52/purchase.checkout.block.render"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "resource": {
08:39:55 │ pre-purchase-product-offe │ "url": ""
08:39:55 │ pre-purchase-product-offe │ }
08:39:55 │ pre-purchase-product-offe │ }
08:39:55 │ pre-purchase-product-offe │ ],
08:39:55 │ pre-purchase-product-offe │ "localization": {
08:39:55 │ pre-purchase-product-offe │ "defaultLocale": "en",
08:39:55 │ pre-purchase-product-offe │ "translations": {
08:39:55 │ pre-purchase-product-offe │ "fr": {
08:39:55 │ pre-purchase-product-offe │ "welcome": "Bienvenue dans l'extension {{target}}!"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "en": {
08:39:55 │ pre-purchase-product-offe │ "welcome": "Welcome to the {{target}} extension!"
08:39:55 │ pre-purchase-product-offe │ }
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "lastUpdated": 1721860795337
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "metafields": null,
08:39:55 │ pre-purchase-product-offe │ "type": "ui_extension",
08:39:55 │ pre-purchase-product-offe │ "externalType": "ui_extension",
08:39:55 │ pre-purchase-product-offe │ "uuid": "c56c009c-acf2-4273-9044-fc64eee2cd52",
08:39:55 │ pre-purchase-product-offe │ "surface": "all",
08:39:55 │ pre-purchase-product-offe │ "title": "pre-purchase product offer",
08:39:55 │ pre-purchase-product-offe │ "handle": "pre-purchase-product-offer",
08:39:55 │ pre-purchase-product-offe │ "name": "pre-purchase product offer",
08:39:55 │ pre-purchase-product-offe │ "apiVersion": "2024-01",
08:39:55 │ pre-purchase-product-offe │ "approvalScopes": [
08:39:55 │ pre-purchase-product-offe │ "read_customer_address",
08:39:55 │ pre-purchase-product-offe │ "read_customer_email",
08:39:55 │ pre-purchase-product-offe │ "read_customer_name",
08:39:55 │ pre-purchase-product-offe │ "read_customer_personal_data",
08:39:55 │ pre-purchase-product-offe │ "read_customer_phone",
08:39:55 │ pre-purchase-product-offe │ "write_themes_assets"
08:39:55 │ pre-purchase-product-offe │ ],
08:39:55 │ pre-purchase-product-offe │ "settings": {
08:39:55 │ pre-purchase-product-offe │ "fields": [
08:39:55 │ pre-purchase-product-offe │ {
08:39:55 │ pre-purchase-product-offe │ "key": "block_title",
08:39:55 │ pre-purchase-product-offe │ "name": "Title",
08:39:55 │ pre-purchase-product-offe │ "description": "Block Title",
08:39:55 │ pre-purchase-product-offe │ "type": "single_line_text_field"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ {
08:39:55 │ pre-purchase-product-offe │ "key": "product_1",
08:39:55 │ pre-purchase-product-offe │ "name": "Product 1 ID",
08:39:55 │ pre-purchase-product-offe │ "description": "Enter the Product ID for the single-variant product to offer",
08:39:55 │ pre-purchase-product-offe │ "type": "single_line_text_field"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ {
08:39:55 │ pre-purchase-product-offe │ "key": "auto_add_1",
08:39:55 │ pre-purchase-product-offe │ "name": "Auto add product 1",
08:39:55 │ pre-purchase-product-offe │ "type": "boolean"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ {
08:39:55 │ pre-purchase-product-offe │ "key": "product_2",
08:39:55 │ pre-purchase-product-offe │ "name": "Product 2 ID",
08:39:55 │ pre-purchase-product-offe │ "description": "Enter the Product ID for the single-variant product to offer",
08:39:55 │ pre-purchase-product-offe │ "type": "single_line_text_field"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ {
08:39:55 │ pre-purchase-product-offe │ "key": "auto_add_2",
08:39:55 │ pre-purchase-product-offe │ "name": "Auto add product 2",
08:39:55 │ pre-purchase-product-offe │ "type": "boolean"
08:39:55 │ pre-purchase-product-offe │ }
08:39:55 │ pre-purchase-product-offe │ ]
08:39:55 │ pre-purchase-product-offe │ }
08:39:55 │ pre-purchase-product-offe │ }
08:39:55 │ pre-purchase-product-offe │ ]
08:39:55 │ pre-purchase-product-offe │ }
08:39:55 │ pre-purchase-product-offe │ }
08:39:55 │ pre-purchase-product-offe │
08:39:55 │ pre-purchase-product-offe │ 2024-07-24T22:39:55.440Z: Sending websocket with event type update and data:
08:39:55 │ pre-purchase-product-offe │ {
08:39:55 │ pre-purchase-product-offe │ "app": {
08:39:55 │ pre-purchase-product-offe │ "title": "wod-life-app",
08:39:55 │ pre-purchase-product-offe │ "apiKey": "ec47fb94b2de797ca0eda0440f5081da",
08:39:55 │ pre-purchase-product-offe │ "url": "https://arkhi-checkout-ext-dev.myshopify.com/admin/oauth/redirect_from_cli?client_id=ec47fb94b2de797ca0eda0440f5081da",
08:39:55 │ pre-purchase-product-offe │ "mobileUrl":
"https://arkhi-checkout-ext-dev.myshopify.com/admin/apps/ec47fb94b2de797ca0eda0440f5081da?shop=arkhi-checkout-ext-dev.myshopify.com&host=YXJraGktY2hlY2tvdXQtZXh0LWRldi5teXNob3BpZnkuY29tL2FkbWluL2FwcHMvZWM0N2ZiOTRiMmRlNzk3Y2EwZWRhMDQ0MGY1MDgxZGE"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "appId": "98216214529",
08:39:55 │ pre-purchase-product-offe │ "version": "3",
08:39:55 │ pre-purchase-product-offe │ "root": {
08:39:55 │ pre-purchase-product-offe │ "url": "https://friendship-gary-viral-fm.trycloudflare.com/extensions"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "socket": {
08:39:55 │ pre-purchase-product-offe │ "url": "wss://friendship-gary-viral-fm.trycloudflare.com/extensions"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "devConsole": {
08:39:55 │ pre-purchase-product-offe │ "url": "https://friendship-gary-viral-fm.trycloudflare.com/extensions/dev-console"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "store": "arkhi-checkout-ext-dev.myshopify.com",
08:39:55 │ pre-purchase-product-offe │ "extensions": [
08:39:55 │ pre-purchase-product-offe │ {
08:39:55 │ pre-purchase-product-offe │ "assets": {
08:39:55 │ pre-purchase-product-offe │ "main": {
08:39:55 │ pre-purchase-product-offe │ "name": "main",
08:39:55 │ pre-purchase-product-offe │ "url": "https://friendship-gary-viral-fm.trycloudflare.com/extensions/c56c009c-acf2-4273-9044-fc64eee2cd52/assets/pre-purchase-product-offer.js",
08:39:55 │ pre-purchase-product-offe │ "lastUpdated": 1721860795326
08:39:55 │ pre-purchase-product-offe │ }
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "capabilities": {
08:39:55 │ pre-purchase-product-offe │ "blockProgress": false,
08:39:55 │ pre-purchase-product-offe │ "networkAccess": false,
08:39:55 │ pre-purchase-product-offe │ "apiAccess": true,
08:39:55 │ pre-purchase-product-offe │ "collectBuyerConsent": {
08:39:55 │ pre-purchase-product-offe │ "smsMarketing": false,
08:39:55 │ pre-purchase-product-offe │ "customerPrivacy": false
08:39:55 │ pre-purchase-product-offe │ }
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "development": {
08:39:55 │ pre-purchase-product-offe │ "status": "success",
08:39:55 │ pre-purchase-product-offe │ "resource": {
08:39:55 │ pre-purchase-product-offe │ "url": ""
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "root": {
08:39:55 │ pre-purchase-product-offe │ "url": "https://friendship-gary-viral-fm.trycloudflare.com/extensions/c56c009c-acf2-4273-9044-fc64eee2cd52"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "hidden": false,
08:39:55 │ pre-purchase-product-offe │ "localizationStatus": "success"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "extensionPoints": [
08:39:55 │ pre-purchase-product-offe │ {
08:39:55 │ pre-purchase-product-offe │ "target": "purchase.checkout.block.render",
08:39:55 │ pre-purchase-product-offe │ "module": "./src/Checkout.jsx",
08:39:55 │ pre-purchase-product-offe │ "metafields": [],
08:39:55 │ pre-purchase-product-offe │ "surface": "checkout",
08:39:55 │ pre-purchase-product-offe │ "root": {
08:39:55 │ pre-purchase-product-offe │ "url": "https://friendship-gary-viral-fm.trycloudflare.com/extensions/c56c009c-acf2-4273-9044-fc64eee2cd52/purchase.checkout.block.render"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "resource": {
08:39:55 │ pre-purchase-product-offe │ "url": ""
08:39:55 │ pre-purchase-product-offe │ }
08:39:55 │ pre-purchase-product-offe │ }
08:39:55 │ pre-purchase-product-offe │ ],
08:39:55 │ pre-purchase-product-offe │ "localization": {
08:39:55 │ pre-purchase-product-offe │ "defaultLocale": "en",
08:39:55 │ pre-purchase-product-offe │ "translations": {
08:39:55 │ pre-purchase-product-offe │ "fr": {
08:39:55 │ pre-purchase-product-offe │ "welcome": "Bienvenue dans l'extension {{target}}!"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "en": {
08:39:55 │ pre-purchase-product-offe │ "welcome": "Welcome to the {{target}} extension!"
08:39:55 │ pre-purchase-product-offe │ }
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "lastUpdated": 1721860795337
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ "metafields": null,
08:39:55 │ pre-purchase-product-offe │ "type": "ui_extension",
08:39:55 │ pre-purchase-product-offe │ "externalType": "ui_extension",
08:39:55 │ pre-purchase-product-offe │ "uuid": "c56c009c-acf2-4273-9044-fc64eee2cd52",
08:39:55 │ pre-purchase-product-offe │ "surface": "all",
08:39:55 │ pre-purchase-product-offe │ "title": "pre-purchase product offer",
08:39:55 │ pre-purchase-product-offe │ "handle": "pre-purchase-product-offer",
08:39:55 │ pre-purchase-product-offe │ "name": "pre-purchase product offer",
08:39:55 │ pre-purchase-product-offe │ "apiVersion": "2024-01",
08:39:55 │ pre-purchase-product-offe │ "approvalScopes": [
08:39:55 │ pre-purchase-product-offe │ "read_customer_address",
08:39:55 │ pre-purchase-product-offe │ "read_customer_email",
08:39:55 │ pre-purchase-product-offe │ "read_customer_name",
08:39:55 │ pre-purchase-product-offe │ "read_customer_personal_data",
08:39:55 │ pre-purchase-product-offe │ "read_customer_phone",
08:39:55 │ pre-purchase-product-offe │ "write_themes_assets"
08:39:55 │ pre-purchase-product-offe │ ],
08:39:55 │ pre-purchase-product-offe │ "settings": {
08:39:55 │ pre-purchase-product-offe │ "fields": [
08:39:55 │ pre-purchase-product-offe │ {
08:39:55 │ pre-purchase-product-offe │ "key": "block_title",
08:39:55 │ pre-purchase-product-offe │ "name": "Title",
08:39:55 │ pre-purchase-product-offe │ "description": "Block Title",
08:39:55 │ pre-purchase-product-offe │ "type": "single_line_text_field"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ {
08:39:55 │ pre-purchase-product-offe │ "key": "product_1",
08:39:55 │ pre-purchase-product-offe │ "name": "Product 1 ID",
08:39:55 │ pre-purchase-product-offe │ "description": "Enter the Product ID for the single-variant product to offer",
08:39:55 │ pre-purchase-product-offe │ "type": "single_line_text_field"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ {
08:39:55 │ pre-purchase-product-offe │ "key": "auto_add_1",
08:39:55 │ pre-purchase-product-offe │ "name": "Auto add product 1",
08:39:55 │ pre-purchase-product-offe │ "type": "boolean"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ {
08:39:55 │ pre-purchase-product-offe │ "key": "product_2",
08:39:55 │ pre-purchase-product-offe │ "name": "Product 2 ID",
08:39:55 │ pre-purchase-product-offe │ "description": "Enter the Product ID for the single-variant product to offer",
08:39:55 │ pre-purchase-product-offe │ "type": "single_line_text_field"
08:39:55 │ pre-purchase-product-offe │ },
08:39:55 │ pre-purchase-product-offe │ {
08:39:55 │ pre-purchase-product-offe │ "key": "auto_add_2",
08:39:55 │ pre-purchase-product-offe │ "name": "Auto add product 2",
08:39:55 │ pre-purchase-product-offe │ "type": "boolean"
08:39:55 │ pre-purchase-product-offe │ }
08:39:55 │ pre-purchase-product-offe │ ]
08:39:55 │ pre-purchase-product-offe │ }
08:39:55 │ pre-purchase-product-offe │ }
08:39:55 │ pre-purchase-product-offe │ ]
08:39:55 │ pre-purchase-product-offe │ }
08:39:55 │ pre-purchase-product-offe │
2024-07-24T22:39:55.825Z: Request to https://partners.shopify.com/api/cli/graphql completed in 633 ms
With response headers:

cache-control: max-age=0, private, must-revalidate
content-type: application/json; charset=utf-8
etag: W/"f9e834f7231872722829cb9dec035749"
x-request-id: d8e68995-c4eb-4611-99e4-96d875c97269-1721860795
08:39:56 │ extensions │ 2024-07-24T22:39:56.091Z: UI extensions server received a GET request to URL /extensions/c56c009c-acf2-4273-9044-fc64eee2cd52/assets/pre-purchase-product-offer.js
2024-07-24T22:39:56.099Z: Checking if extensions/pre-purchase-product-offer/dist/pre-purchase-product-offer.js is a directory...
2024-07-24T22:39:56.101Z: Reading the content of file at extensions/pre-purchase-product-offer/dist/pre-purchase-product-offer.js...
08:39:56 │ extensions │ 2024-07-24T22:39:56.560Z: UI extensions server received a GET request to URL /extensions/c56c009c-acf2-4273-9044-fc64eee2cd52/assets/pre-purchase-product-offer.js.map
2024-07-24T22:39:56.565Z: Checking if extensions/pre-purchase-product-offer/dist/pre-purchase-product-offer.js.map is a directory...
2024-07-24T22:39:56.566Z: Reading the content of file at extensions/pre-purchase-product-offer/dist/pre-purchase-product-offer.js.map...

@gonzaloriestra
Copy link
Contributor

Looking at the log (I've removed some noise from there), it seems that you made a change in src\Checkout.jsx and then it tried to refresh it. Did it fail? Or did you make an additional change that doesn't appear in the log?

If you were able to share a video where you make the change with the console open, it would be very useful.

@Lisa-C-27
Copy link
Author

I think I tried to make a few changes. When I was trying to get the verbose output it kept getting cut off and the first part of the code was a bunch of jibberish (lots of random characters, like 100+ lines of random numbers and letters).
I have a video here that I did about a week ago, without the verbose output. The first save I made didn't have the message to say the draft was successfully updated, but on the second save it did. But still does not update the dev preview

@Lisa-C-27
Copy link
Author

@gonzaloriestra just bumping this again as I'm still having issues with this and at a halt on this extension update for a client

@gonzaloriestra
Copy link
Contributor

I'm not able to see the video, could you try to share it in a different way?

Copy link
Contributor

This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action.
→ If there's no activity within a week, then a bot will automatically close this.
Thanks for helping to improve Shopify's dev tooling and experience.

P.S. You can learn more about why we stale issues here.

@Lisa-C-27
Copy link
Author

@gonzaloriestra sorry I copied the wrong link - here is the preview link: https://app.screencastify.com/v3/watch/uspvV9nLlIPsimqZSbyZ

@isaacroldan
Copy link
Contributor

Hey @Lisa-C-27 , what target are you using for your checkout extension? is it purchase.checkout.block.render?

Did you move the block in the Checkout Editor? When you move the block in the editor, it will take the deployed version of it, not the dev one (but you should still see both when dev'ing though 🤔 )

@Lisa-C-27
Copy link
Author

@isaacroldan yes that's the target I'm using. And when you say move, do you mean move it whilst dev is running or moved it since it was last deployed? I think the block had been deleted from the dev store since it had last been deployed so had to add it back in, but I don't keep moving it whilst it is in dev.
But also why would it still only occasionally show my updates. So for e.g. if I leave it for maybe a day and come back and make a change I will see this change (and sometimes a couple more changes will be visible as I'm working in the dev preview), but then all of a sudden it will stop showing updates to the dev preview until I come back a day or so later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants