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]: Not able to run dev environment with CLI 3.67.0 #4471

Closed
2 tasks done
dev-prakhar opened this issue Sep 18, 2024 · 3 comments · Fixed by #4473
Closed
2 tasks done

[Bug]: Not able to run dev environment with CLI 3.67.0 #4471

dev-prakhar opened this issue Sep 18, 2024 · 3 comments · Fixed by #4473
Labels
Area: @shopify/theme @shopify/theme package issues #gsd:40767 Fortify local development experience for Liquid themes Type: Bug Something isn't working

Comments

@dev-prakhar
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?

Extension

Expected behavior

Running the following command should set up the development environment

shopify app dev --config dev

Actual behavior

The following error was raised after running the command

Cannot read properties of undefined (reading 'output')

Image

Verbose output

$ shopify app dev --config dev --verbose
2024-09-18T19:49:31.923Z: Running command app dev
2024-09-18T19:49:31.933Z: Getting a random port...
2024-09-18T19:49:31.939Z: Random port obtained: 52187
2024-09-18T19:49:33.987Z: Renaming file from node_modules/@shopify/cli/bin/cloudflared to node_modules/@shopify/cli/bin/cloudflared...

2024-09-18T19:49:34.091Z: Ensuring that the user is authenticated with the Partners API with the following scopes:
[]

2024-09-18T19:49:34.092Z: Getting session store...
2024-09-18T19:49:34.093Z: 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:
{
  "partnersApi": {
    "scopes": []
  }
}

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

2024-09-18T19:49:34.548Z: 2024-09-18T19:49:34Z INF Thank you for trying Cloudflare Tunnel. Doing so, without a Cloudflare account, is a quick way to experiment and try it out. However, be aware that these account-less Tunnels have no uptime guarantee. If you intend to use Tunnels in production you should use a pre-created named tunnel by following: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps
2024-09-18T19:49:34Z INF Requesting new quick Tunnel on trycloudflare.com...

2024-09-18T19:49:34.614Z: Request to https://accounts.shopify.com/oauth/introspection completed in 520 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/"267c3194f2e6699af2a03009d5021dde"
 - server-timing: processing;dur=29, socket_queue;dur=1.469, edge;dur=1.015, util;dur=0.3, cfRequestDuration;dur=268.999815
 - x-request-id: 6721ebfa-62ae-4bb8-bbf4-6bf62691c7e5-1726688974

2024-09-18T19:49:34.616Z: The identity token is valid: true
2024-09-18T19:49:34.616Z:
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false

2024-09-18T19:49:34.616Z: Verifying that the user has a Partner organization
2024-09-18T19:49:34.617Z: Confirmed partner account exists from cache
2024-09-18T19:49:34.617Z: Getting partner account info from cache
2024-09-18T19:49:34.621Z: Sending "Partners" GraphQL request:
  query FindApp($apiKey: String!) {
    app(apiKey: $apiKey) {
      id
      title
      apiKey
      organizationId
      apiSecretKeys {
        secret
      }
      appType
      grantedScopes
      applicationUrl
      redirectUrlWhitelist
      requestedAccessScopes
      webhookApiVersion
      embedded
      posEmbedded
      preferencesUrl
      gdprWebhooks {
        customerDeletionUrl
        customerDataRequestUrl
        shopDeletionUrl
      }
      appProxy {
        subPath
        subPathPrefix
        url
      }
      developmentStorePreviewEnabled
      disabledFlags
    }
  }

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

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

2024-09-18T19:49:35.600Z: Request to https://partners.shopify.com/api/cli/graphql completed in 979 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"62a9b3e10cdc32aa8bcf5f6b550aae6d"
 - server-timing: processing;dur=326, socket_queue;dur=2.006, util;dur=0.3, cfRequestDuration;dur=581.000090
 - x-request-id: 6b86a973-fc3f-48f2-9b44-60c4dc7ef215-1726688975

2024-09-18T19:49:35.609Z: Sending "Partners" GraphQL request:
  query FindOrganization($id: ID!) {
    organizations(id: $id, first: 1) {
      nodes {
        id
        businessName
      }
    }
  }

With variables:
{
  "id": "******" // Masked Manually
}

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

2024-09-18T19:49:36.004Z: Request to https://partners.shopify.com/api/cli/graphql completed in 394 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"20b7c4ac6a983a1f47e53fc2ae02fe4d"
 - server-timing: processing;dur=78, socket_queue;dur=2.212, util;dur=0.7, cfRequestDuration;dur=342.000008
 - x-request-id: 6468135b-bf3c-4a88-992d-80ab8b1a5ca6-1726688975

2024-09-18T19:49:36.016Z: Sending "Partners" GraphQL request:
  query FindOrganization($orgId: ID!, $shopDomain: String) {
    organizations(id: $orgId, first: 1) {
      nodes {
        id
        businessName
        stores(shopDomain: $shopDomain, first: 1, archived: false) {
          nodes {
            shopId
            link
            shopDomain
            shopName
            transferDisabled
            convertableToPartnerTest
          }
        }
      }
    }
  }

With variables:
{
  "orgId": "****", // Masked Manually
  "shopDomain": "****" // Masked Manually
}

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

2024-09-18T19:49:36.504Z: Request to https://partners.shopify.com/api/cli/graphql completed in 488 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"743f0b3cd5c864adb77a3bbfb12971d2"
 - server-timing: processing;dur=192, socket_queue;dur=1.813, util;dur=0.1, cfRequestDuration;dur=429.000139
 - x-request-id: 885455d1-5d43-401d-a92c-e281d253d6b8-1726688976

2024-09-18T19:49:36.509Z: Sending "Partners" GraphQL request:
  query fetchSpecifications($api_key: String!) {
    extensionSpecifications(apiKey: $api_key) {
      name
      externalName
      externalIdentifier
      identifier
      gated
      experience
      options {
        managementExperience
        registrationLimit
      }
      features {
        argo {
          surface
        }
      }
      validationSchema {
        jsonSchema
      }
    }
  }

With variables:
{
  "api_key": "*****" // Masked Manually
}

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

2024-09-18T19:49:37.007Z: Request to https://partners.shopify.com/api/cli/graphql completed in 497 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"e957a9d438cb9914eacebd3af28d03a4"
 - server-timing: processing;dur=110, socket_queue;dur=6.525, util;dur=0.1, cfRequestDuration;dur=381.999969
 - x-request-id: cccaac31-4bc3-47a4-9987-101c2a75004b-1726688976

2024-09-18T19:49:37.009Z: The following extension specifications were defined locally but not found in the remote specifications: data, payments_extension, tax_calculation
2024-09-18T19:49:37.009Z: The following extension specifications were found in the remote specifications but not defined locally: cloud_terminal_management
2024-09-18T19:49:37.013Z: Sending "Partners" GraphQL request:
  query activeAppVersion($apiKey: String!) {
    app(apiKey: $apiKey) {
      activeAppVersion {
        appModuleVersions {
          registrationId
          registrationUuid
          registrationTitle
          type
          config
          specification {
            identifier
            name
            experience
            options {
              managementExperience
            }
          }
        }
      }
    }
  }

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

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

2024-09-18T19:49:37.605Z: Request to https://partners.shopify.com/api/cli/graphql completed in 592 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"bc26d8b1bc92014a63ae3099282be6c4"
 - server-timing: processing;dur=292, socket_queue;dur=2.437, util;dur=0.4, cfRequestDuration;dur=529.000044
 - x-request-id: 8ba998ce-15c9-46d2-814d-ce964606c914-1726688977


2024-09-18T19:49:37.693Z: Reading the content of file at package.json...
2024-09-18T19:49:37.694Z: Reading the content of file at package.json...
2024-09-18T19:49:37.700Z:
Running system process:
  · Command: npm prefix

2024-09-18T19:49:38.172Z: Reading the content of file at package.json...
2024-09-18T19:49:38.175Z: Unable to decide project type as no web backend
2024-09-18T19:49:38.176Z: File-writing some content to file at shopify.app.dev.toml...
╭─ info ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                   │
│  Using shopify.app.dev.toml for default values:                                                                                                   │
│                                                                                                                                                   │
│    • Org:             *******************                                                                                                         │
│    • App:             ************************                                                                                                    │
│    • Dev store:       *************************                                                                                                   │
│    • Update URLs:     Not yet configured                                                                                                          │
│                                                                                                                                                   │
│   You can pass  `--reset`  to your command to reset your app configuration.                                                                       │
│                                                                                                                                                   │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

2024-09-18T19:49:38.219Z: Port 3457 is free
2024-09-18T19:49:38.221Z: Polling tunnel status for cloudflare (attempt 0): starting
2024-09-18T19:49:38.221Z: Getting a random port...
2024-09-18T19:49:38.227Z: Random port obtained: 52203
2024-09-18T19:49:38.723Z: Polling tunnel status for cloudflare (attempt 1): starting
2024-09-18T19:49:39.225Z: Polling tunnel status for cloudflare (attempt 2): starting
2024-09-18T19:49:39.728Z: Polling tunnel status for cloudflare (attempt 3): starting
2024-09-18T19:49:40.199Z: 2024-09-18T19:49:40Z INF +--------------------------------------------------------------------------------------------+
2024-09-18T19:49:40Z INF |  Your quick Tunnel has been created! Visit it at (it may take some time to be reachable):  |
2024-09-18T19:49:40Z INF |  https://draws-garlic-travis-rider.trycloudflare.com                                       |
2024-09-18T19:49:40Z INF +--------------------------------------------------------------------------------------------+

2024-09-18T19:49:40.200Z: 2024-09-18T19:49:40Z INF Cannot determine default configuration path. No file [config.yml config.yaml] in [~/.cloudflared ~/.cloudflare-warp ~/cloudflare-warp /etc/cloudflared /usr/local/etc/cloudflared]
2024-09-18T19:49:40Z INF Version 2024.8.2
2024-09-18T19:49:40Z INF GOOS: darwin, GOVersion: go1.22.2-devel-cf, GoArch: arm64
2024-09-18T19:49:40Z INF Settings: map[ha-connections:1 no-autoupdate:true protocol:quic url:http://localhost:52187]

2024-09-18T19:49:40.202Z: 2024-09-18T19:49:40Z INF Generated Connector ID: 43f7b714-7b27-4c40-8d88-f97e3d69f51d

2024-09-18T19:49:40.229Z: Polling tunnel status for cloudflare (attempt 4): starting
2024-09-18T19:49:40.235Z: 2024-09-18T19:49:40Z INF Initial protocol quic

2024-09-18T19:49:40.235Z: 2024-09-18T19:49:40Z INF ICMP proxy will use 192.168.29.208 as source for IPv4

2024-09-18T19:49:40.235Z: 2024-09-18T19:49:40Z INF ICMP proxy will use fe80::e1:1471:4801:b496 in zone en0 as source for IPv6

2024-09-18T19:49:40.235Z: 2024-09-18T19:49:40Z INF Created ICMP proxy listening on 192.168.29.208:0

2024-09-18T19:49:40.235Z: 2024-09-18T19:49:40Z INF Created ICMP proxy listening on [fe80::e1:1471:4801:b496%en0]:0

2024-09-18T19:49:40.248Z: 2024-09-18T19:49:40Z INF Starting metrics server on 127.0.0.1:52204/metrics

2024-09-18T19:49:40.632Z: 2024-09-18T19:49:40Z ERR update check failed error="no release found"

2024-09-18T19:49:40.731Z: Polling tunnel status for cloudflare (attempt 5): starting
2024-09-18T19:49:41.232Z: Polling tunnel status for cloudflare (attempt 6): starting
2024-09-18T19:49:41.249Z: 2024-09-18T19:49:41Z INF Registered tunnel connection connIndex=0 connection=cc147e38-0218-4603-82b9-6e7fe3d15228 event=0 ip=198.41.192.27 location=maa04 protocol=quic

2024-09-18T19:49:41.733Z: Polling tunnel status for cloudflare (attempt 7): connected
2024-09-18T19:49:41.734Z: Getting a random port...
2024-09-18T19:49:41.735Z: Random port obtained: 52206
2024-09-18T19:49:41.743Z: Sending "Partners" GraphQL request:
  query allAppExtensionRegistrations($apiKey: String!) {
    app(apiKey: $apiKey) {
      extensionRegistrations {
        id
        uuid
        title
        type
        draftVersion {
          config
          context
        }
        activeVersion {
          config
          context
        }
      }
      configurationRegistrations {
        id
        uuid
        title
        type
        draftVersion {
          config
          context
        }
        activeVersion {
          config
          context
        }
      }
      dashboardManagedExtensionRegistrations {
        id
        uuid
        title
        type
        activeVersion {
          config
          context
        }
        draftVersion {
          config
          context
        }
      }
    }
  }

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

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

2024-09-18T19:49:43.054Z: Request to https://partners.shopify.com/api/cli/graphql completed in 1310 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"620aae316543ac87539d035ada786d03"
 - server-timing: processing;dur=990, socket_queue;dur=2.308, util;dur=0.3, cfRequestDuration;dur=1231.999874
 - x-request-id: e3c4ad6e-0a4e-4dda-9074-e89afc8991a9-1726688981

2024-09-18T19:49:43.061Z: Sending "Partners" GraphQL request:
  query activeAppVersion($apiKey: String!) {
    app(apiKey: $apiKey) {
      activeAppVersion {
        appModuleVersions {
          registrationId
          registrationUuid
          registrationTitle
          type
          config
          specification {
            identifier
            name
            experience
            options {
              managementExperience
            }
          }
        }
      }
    }
  }

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

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

2024-09-18T19:49:43.789Z: Request to https://partners.shopify.com/api/cli/graphql completed in 727 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"bc26d8b1bc92014a63ae3099282be6c4"
 - server-timing: processing;dur=423, socket_queue;dur=2.391, util;dur=0.2, cfRequestDuration;dur=663.999796
 - x-request-id: c08ac1b9-c174-4ee7-bfb0-c0ad5bebe218-1726688983

2024-09-18T19:49:43.802Z: Sending "Partners" GraphQL request:
  query activeAppVersion($apiKey: String!) {
    app(apiKey: $apiKey) {
      activeAppVersion {
        appModuleVersions {
          registrationId
          registrationUuid
          registrationTitle
          type
          config
          specification {
            identifier
            name
            experience
            options {
              managementExperience
            }
          }
        }
      }
    }
  }

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

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

2024-09-18T19:49:45.435Z: Request to https://partners.shopify.com/api/cli/graphql completed in 1631 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"bc26d8b1bc92014a63ae3099282be6c4"
 - server-timing: processing;dur=1320, socket_queue;dur=3.64, util;dur=1.4, cfRequestDuration;dur=1559.000015
 - x-request-id: f52dcec6-d105-4da1-a218-3b6aa8aa4bb5-1726688983

2024-09-18T19:49:45.440Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store ******* // Masked Manually:
[]

2024-09-18T19:49:45.440Z: Getting session store...
2024-09-18T19:49:45.441Z: 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": "********" // Masked Manually
  }
}

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

2024-09-18T19:49:45.772Z: Request to https://accounts.shopify.com/oauth/introspection completed in 331 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/"267c3194f2e6699af2a03009d5021dde"
 - server-timing: processing;dur=32, socket_queue;dur=1.515, edge;dur=1.022, util;dur=0.05, cfRequestDuration;dur=278.000116
 - x-request-id: d2497a41-4ff9-4784-8bc6-3a271cc4b498-1726688985

2024-09-18T19:49:45.774Z: The identity token is valid: true
2024-09-18T19:49:45.774Z:
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false

2024-09-18T19:49:45.960Z: Request to ************ completed in 185 ms
With response headers:
 - content-type: text/html; charset=utf-8
 - server-timing: processing;dur=17, db;dur=3, asn;desc="55836", edge;desc="MAA", country;desc="IN", theme;desc="163531784495", pageType;desc="index", servedBy;desc="7m8p", requestID;desc="cb9f4326-c4b3-45f0-9073-4f695500023e-1726688985", cfRequestDuration;dur=125.999928, ipv6
 - x-request-id: cb9f4326-c4b3-45f0-9073-4f695500023e-1726688985

╭─ error ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                   │
│  Cannot read properties of undefined (reading 'output')                                                                                           │
│                                                                                                                                                   │
│  To investigate the issue, examine this stack trace:                                                                                              │
│    at (...node_modules/@shopify/cli/dist/chunk-7QTS6ZWN.js:29612)                                                                                 │
│    at forEach                                                                                                                                     │
│    at outputContent (...node_modules/@shopify/cli/dist/chunk-7QTS6ZWN.js:29605)                                                                   │
│    at getStorefrontPassword (...node_modules/@shopify/cli/dist/index.js:144849)                                                                   │
│    at ensureValidPassword (...node_modules/@shopify/cli/dist/index.js:145382)                                                                     │
│    at setupPreviewThemeAppExtensionsProcess2                                                                                                      │
│    (...node_modules/@shopify/cli/dist/index.js:165974)                                                                                            │
│    at processTicksAndRejections (node:internal/process/task_queues:95)                                                                            │
│    at async setupDevProcesses (...node_modules/@shopify/cli/dist/index.js:168917)                                                                 │
│    at async dev2 (...node_modules/@shopify/cli/dist/index.js:169278)                                                                              │
│    at run (...node_modules/@shopify/cli/dist/index.js:169528)                                                                                     │
│                                                                                                                                                   │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

2024-09-18T19:49:46.012Z:
Running system process:
  · Command: npm prefix

2024-09-18T19:49:46.189Z: Obtaining the dependency manager in directory 
2024-09-18T19:49:46.191Z:
Running system process:
  · Command: ruby -v

2024-09-18T19:49:46.685Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 440 ms
With response headers:
 - x-request-id: fe347984-02e6-4682-b22a-36346cbb4c29

2024-09-18T19:49:46.686Z: Analytics event sent: {
  "command": "app dev",
  "time_start": 1726688971924,
  "time_end": 1726688986007,
  "total_time": 14083,
  "success": false,
  "cli_version": "3.67.0",
  "ruby_version": "3.0.0",
  "node_version": "22.1.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": "**************",
  "env_cloud": "localhost",
  "env_package_manager": "yarn",
  "env_is_global": false,
  "cmd_app_warning_api_key_deprecation_displayed": false,
  "cmd_app_all_configs_any": true,
  "cmd_app_all_configs_clients": "{\"shopify.app.dev.toml\":\"***********\",\"shopify.app.prod.toml\":\"******************\"}",
  "cmd_app_linked_config_used": true,
  "cmd_app_linked_config_name": "shopify.app.dev.toml",
  "cmd_app_linked_config_git_tracked": false,
  "cmd_app_linked_config_source": "flag",
  "partner_id": **********,
  "api_key": "****",
  "app_extensions_any": true,
  "app_extensions_breakdown": "{\"ui_extension\":3,\"function\":1,\"theme\":1}",
  "app_extensions_count": 5,
  "app_extensions_custom_layout": false,
  "app_extensions_function_any": true,
  "app_extensions_function_count": 1,
  "app_extensions_theme_any": true,
  "app_extensions_theme_count": 1,
  "app_extensions_ui_any": true,
  "app_extensions_ui_count": 3,
  "app_name_hash": "************",
  "app_path_hash": "********",
  "app_scopes": "[*********]",
  "app_web_backend_any": false,
  "app_web_backend_count": 0,
  "app_web_custom_layout": false,
  "app_web_frontend_any": false,
  "app_web_frontend_count": 0,
  "env_package_manager_workspaces": true,
  "cmd_deploy_include_config_used": true,
  "cmd_deploy_config_modules_breakdown": "[]",
  "cmd_deploy_config_modules_updated": "[]",
  "cmd_all_timing_network_ms": 7656,
  "cmd_all_timing_prompts_ms": 0,
  "cmd_all_launcher": "yarn",
  "cmd_all_topic": "app",
  "cmd_all_plugin": "@shopify/app",
  "cmd_all_verbose": true,
  "cmd_all_path_override": true,
  "cmd_all_path_override_hash": "**********",
  "cmd_app_dependency_installation_skipped": false,
  "cmd_app_reset_used": false,
  "cmd_dev_tunnel_type": "cloudflare",
  "cmd_all_timing_active_ms": 6426,
  "cmd_all_exit": "unexpected_error",
  "args": "--config dev --verbose",
  "error_message": "Cannot read properties of undefined (reading 'output')",
  "app_name": "*****",
  "env_plugin_installed_all": "[\"@shopify/cli\"]",
  "metadata": "{\"extraPublic\":{},\"extraSensitive\":{}}"
}
2024-09-18T19:49:46.695Z: Reporting unhandled error to Bugsnag: Cannot read properties of undefined (reading 'output')
2024-09-18T19:49:47.720Z:
Running system process:
  · Command: npm prefix

2024-09-18T19:49:47.942Z: Obtaining the dependency manager in directory 
error Command failed with exit code 1.

Reproduction steps

  1. Have an extension with Theme App Extension
  2. Upgrade CLI from version 3.59 to 3.67
  3. Run:
shopify app dev --config dev

Operating System

Mac OS Sonoma 14.5

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

3.67.0

Shell

zsh

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

v22.1.0

What language and version are you using in your application?

Node 22.1.0

@dev-prakhar dev-prakhar added the Type: Bug Something isn't working label Sep 18, 2024
@awd
Copy link
Contributor

awd commented Sep 18, 2024

Exact same logs for me here, one difference being: Upgrade CLI from version 3.66 to 3.67

@pnmcosta
Copy link

+1 same issue and similar trace

@jamesmengo
Copy link
Contributor

👋🏻 Thanks for reporting this! There is a fix in review right now.
In the meantime, I have some suggestions for workarounds that you may try.

This issue stems for a specific local storage instance returning undefined when initialized from the app dev command, so you can either:

  1. Initialize the session via theme command - Recommended

Execute shopify theme list --store=<YOUR_STORE>

This will initialize your local session storage instance and circumvent the issue.
Note that if you switch shops, you will want to do this again.

  1. Pass the --legacy flag to the command

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 #gsd:40767 Fortify local development experience for Liquid themes Type: Bug Something isn't working
Projects
None yet
5 participants