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 is not working when a theme extension exists #4549

Closed
2 tasks done
RaphaelLima123 opened this issue Oct 1, 2024 · 3 comments
Closed
2 tasks done
Assignees
Labels
Area: @shopify/theme @shopify/theme package issues State: Waiting for feedback Type: Bug Something isn't working

Comments

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

The shopify app dev command should successfully start the local development environment for my Shopify app without encountering any errors or permission issues. The app should load correctly in my default browser, allowing me to view and interact with my local development version of the app.

The error just happen when the app has a theme extension.

Actual behavior

shopify app dev
╭─ info ─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Using shopify.app.test-app.toml for default values: │
│ │
│ • Org: Raphael Lima │
│ • App: test app │
│ • Dev store: raphael-lima.myshopify.com │
│ • Update URLs: Yes │
│ │
│ You can pass --reset to your command to reset your app configuration. │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

╭─ error ────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Maximum call stack size exceeded │
│ │
│ To investigate the issue, examine this stack trace: │
│ at openSync (node:fs:562) │
│ at attempt │
│ (opt/homebrew/Cellar/shopify-cli/3.67.3/libexec/lib/node_modules/@shopify/cli/dist/chunk-NV2K2JNI.js:9332) │
│ at attempt │
│ (opt/homebrew/Cellar/shopify-cli/3.67.3/libexec/lib/node_modules/@shopify/cli/dist/chunk-NV2K2JNI.js:9337) │
│ at attempt │
│ (opt/homebrew/Cellar/shopify-cli/3.67.3/libexec/lib/node_modules/@shopify/cli/dist/chunk-NV2K2JNI.js:9337) │
│ at attempt │
│ (opt/homebrew/Cellar/shopify-cli/3.67.3/libexec/lib/node_modules/@shopify/cli/dist/chunk-NV2K2JNI.js:9337) │
│ at attempt │
│ (opt/homebrew/Cellar/shopify-cli/3.67.3/libexec/lib/node_modules/@shopify/cli/dist/chunk-NV2K2JNI.js:9337) │
│ at attempt │
│ (opt/homebrew/Cellar/shopify-cli/3.67.3/libexec/lib/node_modules/@shopify/cli/dist/chunk-NV2K2JNI.js:9337) │
│ at attempt │
│ (opt/homebrew/Cellar/shopify-cli/3.67.3/libexec/lib/node_modules/@shopify/cli/dist/chunk-NV2K2JNI.js:9337) │
│ at attempt │
│ (opt/homebrew/Cellar/shopify-cli/3.67.3/libexec/lib/node_modules/@shopify/cli/dist/chunk-NV2K2JNI.js:9337) │
│ at attempt │
│ (opt/homebrew/Cellar/shopify-cli/3.67.3/libexec/lib/node_modules/@shopify/cli/dist/chunk-NV2K2JNI.js:9337) │
│ │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Verbose output

2024-10-01T01:46:24.332Z: Running command app dev
2024-10-01T01:46:24.344Z: Getting a random port...
2024-10-01T01:46:24.351Z: Random port obtained: 49727
2024-10-01T01:46:24.433Z: cloudflared already installed, skipping
2024-10-01T01:46:24.437Z:
Running system process:
· Command: /opt/homebrew/Cellar/shopify-cli/3.67.3/libexec/lib/node_modules/@shopify/cli/bin/cloudflared tunnel --url http://localhost:49727 --no-autoupdate
· Working directory: /Users/raphaellima/Shopify/projects/test-extension

2024-10-01T01:46:24.441Z: Reading cached app information for directory /Users/raphaellima/Shopify/projects/test-extension...
2024-10-01T01:46:24.442Z: Reading the content of file at shopify.app.test-app.toml...
2024-10-01T01:46:24.445Z: Reading the content of file at shopify.app.test-app.toml...
2024-10-01T01:46:24.448Z: Reading the content of file at shopify.app.toml...
2024-10-01T01:46:24.457Z: 2024-10-01T01:46:24Z 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-10-01T01:46:24Z INF Requesting new quick Tunnel on trycloudflare.com...

2024-10-01T01:46:24.515Z: Reading cached app information for directory /Users/raphaellima/Shopify/projects/test-extension...
2024-10-01T01:46:24.515Z: Reading cached app information for directory /Users/raphaellima/Shopify/projects/test-extension...
2024-10-01T01:46:24.516Z: Reading cached app information for directory /Users/raphaellima/Shopify/projects/test-extension...
2024-10-01T01:46:24.517Z: Reading the content of file at shopify.app.test-app.toml...
2024-10-01T01:46:24.517Z: Reading the content of file at shopify.app.test-app.toml...
2024-10-01T01:46:24.519Z: Reading the content of file at shopify.app.toml...
2024-10-01T01:46:24.579Z: Ensuring that the user is authenticated with the Partners API with the following scopes:
[]

2024-10-01T01:46:24.579Z: Getting session store...
2024-10-01T01:46:24.580Z: 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-10-01T01:46:24.581Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-10-01T01:46:24.581Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:

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

2024-10-01T01:46:25.060Z: Request to https://accounts.shopify.com/oauth/introspection completed in 478 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/"df2000595fb859b2a665c5587ed80b16"
  • server-timing: processing;dur=36, socket_queue;dur=1.687, edge;dur=1.017, util;dur=0.0, cfRequestDuration;dur=184.999943
  • x-request-id: 6fc210e9-1a1e-419d-b472-3e82d01855a3-1727747184

2024-10-01T01:46:25.062Z: The identity token is valid: true
2024-10-01T01:46:25.062Z:
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-01T01:46:25.063Z: Verifying that the user has a Partner organization
2024-10-01T01:46:25.063Z: Confirmed partner account exists from cache
2024-10-01T01:46:25.064Z: Getting partner account info from cache
2024-10-01T01:46:25.069Z: 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.3
  • Keep-Alive: timeout=30
  • Sec-CH-UA-PLATFORM: darwin
  • Content-Type: application/json

2024-10-01T01:46:25.893Z: Request to https://partners.shopify.com/api/cli/graphql completed in 824 ms
With response headers:

  • cache-control: max-age=0, private, must-revalidate
  • content-type: application/json; charset=utf-8
  • etag: W/"5be6cfb09c42bb4bf4ed84232a529965"
  • server-timing: processing;dur=406, socket_queue;dur=7.242, util;dur=0.9, cfRequestDuration;dur=566.999912
  • x-request-id: 204a34f5-2eb6-4dbd-b7ae-2e3094250d8c-1727747185

2024-10-01T01:46:25.900Z: Sending "Partners" GraphQL request:
query FindOrganization($id: ID!) {
organizations(id: $id, first: 1) {
nodes {
id
businessName
}
}
}

With variables:
{
"id": "2572053"
}

With request headers:

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

2024-10-01T01:46:26.228Z: Request to https://partners.shopify.com/api/cli/graphql completed in 328 ms
With response headers:

  • cache-control: max-age=0, private, must-revalidate
  • content-type: application/json; charset=utf-8
  • etag: W/"720cd942c6c46c1888a072a9e41f3ce6"
  • server-timing: processing;dur=68, socket_queue;dur=2.06, util;dur=0.2, cfRequestDuration;dur=215.999842
  • x-request-id: d566b2d3-6fa0-478e-bce8-7ab55f857a9a-1727747186

2024-10-01T01:46:26.235Z: 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": "2572053",
"shopDomain": "raphael-lima.myshopify.com"
}

With request headers:

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

2024-10-01T01:46:26.605Z: Request to https://partners.shopify.com/api/cli/graphql completed in 370 ms
With response headers:

  • cache-control: max-age=0, private, must-revalidate
  • content-type: application/json; charset=utf-8
  • etag: W/"28c6e743688bad08db8b0f9483ff042f"
  • server-timing: processing;dur=104, socket_queue;dur=2.288, util;dur=0.2, cfRequestDuration;dur=246.000051
  • x-request-id: 27df8b3c-65cc-4921-a7c3-0420ead1c3a1-1727747186

2024-10-01T01:46:26.612Z: 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": "a12ef956f9cd0c5b2e47d6c7361b0334"
}

With request headers:

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

2024-10-01T01:46:26.985Z: Request to https://partners.shopify.com/api/cli/graphql completed in 373 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=131, socket_queue;dur=2.167, util;dur=0.2, cfRequestDuration;dur=273.999929
  • x-request-id: 00ee156e-83d7-47f7-a998-85bdb223095e-1727747186

2024-10-01T01:46:26.989Z: The following extension specifications were defined locally but not found in the remote specifications: data, payments_extension, tax_calculation
2024-10-01T01:46:26.989Z: The following extension specifications were found in the remote specifications but not defined locally: cloud_terminal_management
2024-10-01T01:46:26.992Z: 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.3
  • Keep-Alive: timeout=30
  • Sec-CH-UA-PLATFORM: darwin
  • Content-Type: application/json

2024-10-01T01:46:27.630Z: Request to https://partners.shopify.com/api/cli/graphql completed in 638 ms
With response headers:

  • cache-control: max-age=0, private, must-revalidate
  • content-type: application/json; charset=utf-8
  • etag: W/"40a1b4026559d2c1c39c10aa734dfa6e"
  • server-timing: processing;dur=254, socket_queue;dur=1.685, util;dur=0.4, cfRequestDuration;dur=409.000158
  • x-request-id: e5050e8a-3013-48fb-95c1-a74cc62d0812-1727747187

2024-10-01T01:46:27.637Z: Reading cached app information for directory /Users/raphaellima/Shopify/projects/test-extension...
2024-10-01T01:46:27.637Z: Reading the content of file at shopify.app.test-app.toml...
2024-10-01T01:46:27.639Z: Reading the content of file at shopify.app.test-app.toml...
2024-10-01T01:46:27.641Z: Reading the content of file at shopify.app.toml...
2024-10-01T01:46:27.715Z: Reading the content of file at extensions/theme-test/shopify.extension.toml...
2024-10-01T01:46:27.716Z: Reading the content of file at package.json...
2024-10-01T01:46:27.716Z: Reading the content of file at package.json...
2024-10-01T01:46:27.718Z:
Running system process:
· Command: npm prefix
· Working directory: /Users/raphaellima/Shopify/projects/test-extension

2024-10-01T01:46:27.845Z: Obtaining the dependency manager in directory /Users/raphaellima/Shopify/projects/test-extension...
2024-10-01T01:46:27.964Z: Reading the content of file at shopify.web.toml...
2024-10-01T01:46:27.966Z: Reading the content of file at package.json...
2024-10-01T01:46:27.967Z: Writing app configuration to /Users/raphaellima/Shopify/projects/test-extension/shopify.app.test-app.toml
2024-10-01T01:46:27.968Z: File-writing some content to file at shopify.app.test-app.toml...
╭─ info ─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Using shopify.app.test-app.toml for default values: │
│ │
│ • Org: Raphael Lima │
│ • App: test app │
│ • Dev store: raphael-lima.myshopify.com │
│ • Update URLs: Yes │
│ │
│ You can pass --reset to your command to reset your app configuration. │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

2024-10-01T01:46:27.997Z: Port 3457 is free
2024-10-01T01:46:27.998Z: Polling tunnel status for cloudflare (attempt 0): starting
2024-10-01T01:46:27.998Z: Getting a random port...
2024-10-01T01:46:28.001Z: Random port obtained: 49737
2024-10-01T01:46:28.500Z: Polling tunnel status for cloudflare (attempt 1): starting
2024-10-01T01:46:28.700Z: 2024-10-01T01:46:28Z INF +--------------------------------------------------------------------------------------------+
2024-10-01T01:46:28Z INF | Your quick Tunnel has been created! Visit it at (it may take some time to be reachable): |

2024-10-01T01:46:28.701Z: 2024-10-01T01:46:28Z INF | https://junior-saturday-essence-porsche.trycloudflare.com |
2024-10-01T01:46:28Z INF +--------------------------------------------------------------------------------------------+

2024-10-01T01:46:28.702Z: 2024-10-01T01:46:28Z 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-10-01T01:46:28.702Z: 2024-10-01T01:46:28Z INF Version 2024.8.2
2024-10-01T01:46:28Z INF GOOS: darwin, GOVersion: go1.22.2-devel-cf, GoArch: arm64

2024-10-01T01:46:28.702Z: 2024-10-01T01:46:28Z INF Settings: map[ha-connections:1 no-autoupdate:true protocol:quic url:http://localhost:49727]

2024-10-01T01:46:28.703Z: 2024-10-01T01:46:28Z INF Generated Connector ID: 59f49906-67b8-4f84-a324-c25489211ac9

2024-10-01T01:46:28.767Z: 2024-10-01T01:46:28Z INF Initial protocol quic

2024-10-01T01:46:28.768Z: 2024-10-01T01:46:28Z INF ICMP proxy will use 192.168.0.4 as source for IPv4

2024-10-01T01:46:28.768Z: 2024-10-01T01:46:28Z INF ICMP proxy will use fe80::414:d26b:134a:587d in zone en0 as source for IPv6
2024-10-01T01:46:28Z INF Created ICMP proxy listening on 192.168.0.4:0

2024-10-01T01:46:28.768Z: 2024-10-01T01:46:28Z INF Created ICMP proxy listening on [fe80::414:d26b:134a:587d%en0]:0

2024-10-01T01:46:28.805Z: 2024-10-01T01:46:28Z INF Starting metrics server on 127.0.0.1:49739/metrics

2024-10-01T01:46:29.001Z: Polling tunnel status for cloudflare (attempt 2): starting
2024-10-01T01:46:29.081Z: 2024-10-01T01:46:29Z ERR update check failed error="no release found"

2024-10-01T01:46:29.171Z: 2024-10-01T01:46:29Z INF Registered tunnel connection connIndex=0 connection=cc99ee94-ea80-45fe-8be9-37829f22a416 event=0 ip=198.41.200.233 location=gru02 protocol=quic

2024-10-01T01:46:29.502Z: Polling tunnel status for cloudflare (attempt 3): connected
2024-10-01T01:46:29.509Z: Sending "Partners" GraphQL request:
mutation appUpdate($apiKey: String!, $applicationUrl: Url!, $redirectUrlWhitelist: [Url]!, $appProxy: AppProxyInput) {
appUpdate(
input: {
apiKey: $apiKey
applicationUrl: $applicationUrl
redirectUrlWhitelist: $redirectUrlWhitelist
appProxy: $appProxy
}
) {
userErrors {
message
field
}
}
}

With variables:
{
"apiKey": "*****",
"applicationUrl": "https://junior-saturday-essence-porsche.trycloudflare.com",
"redirectUrlWhitelist": [
"https://junior-saturday-essence-porsche.trycloudflare.com/auth/callback",
"https://junior-saturday-essence-porsche.trycloudflare.com/auth/shopify/callback",
"https://junior-saturday-essence-porsche.trycloudflare.com/api/auth/callback"
]
}

With request headers:

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

2024-10-01T01:46:30.310Z: Request to https://partners.shopify.com/api/cli/graphql completed in 801 ms
With response headers:

  • cache-control: max-age=0, private, must-revalidate
  • content-type: application/json; charset=utf-8
  • etag: W/"76acb4e44b91f928c3744a856cacdd2e"
  • server-timing: processing;dur=554, socket_queue;dur=2.277, util;dur=0.5, cfRequestDuration;dur=697.000027
  • x-request-id: 68c19273-4240-43c6-ab7f-a07db9523d47-1727747189

2024-10-01T01:46:30.312Z: Writing app configuration to /Users/raphaellima/Shopify/projects/test-extension/shopify.app.test-app.toml
2024-10-01T01:46:30.313Z: File-writing some content to file at shopify.app.test-app.toml...
2024-10-01T01:46:30.321Z: 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.3
  • Keep-Alive: timeout=30
  • Sec-CH-UA-PLATFORM: darwin
  • Content-Type: application/json

2024-10-01T01:46:31.377Z: Request to https://partners.shopify.com/api/cli/graphql completed in 1055 ms
With response headers:

  • cache-control: max-age=0, private, must-revalidate
  • content-type: application/json; charset=utf-8
  • etag: W/"51b2bc8a4d09d30732caf79a01d1ecc7"
  • server-timing: processing;dur=801, socket_queue;dur=1.888, util;dur=0.6, cfRequestDuration;dur=948.999882
  • x-request-id: b25d775b-b9f4-4a6d-9529-375433ee890e-1727747190

2024-10-01T01:46:31.386Z: 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.3
  • Keep-Alive: timeout=30
  • Sec-CH-UA-PLATFORM: darwin
  • Content-Type: application/json

2024-10-01T01:46:31.911Z: Request to https://partners.shopify.com/api/cli/graphql completed in 525 ms
With response headers:

  • cache-control: max-age=0, private, must-revalidate
  • content-type: application/json; charset=utf-8
  • etag: W/"40a1b4026559d2c1c39c10aa734dfa6e"
  • server-timing: processing;dur=235, socket_queue;dur=2.101, util;dur=0.2, cfRequestDuration;dur=378.000259
  • x-request-id: 9686c5f7-a200-4d75-907f-02c68e59166c-1727747191

2024-10-01T01:46:31.918Z: 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.3
  • Keep-Alive: timeout=30
  • Sec-CH-UA-PLATFORM: darwin
  • Content-Type: application/json

2024-10-01T01:46:32.757Z: Request to https://partners.shopify.com/api/cli/graphql completed in 839 ms
With response headers:

  • cache-control: max-age=0, private, must-revalidate
  • content-type: application/json; charset=utf-8
  • etag: W/"40a1b4026559d2c1c39c10aa734dfa6e"
  • server-timing: processing;dur=545, socket_queue;dur=3.512, util;dur=0.7, cfRequestDuration;dur=700.000048
  • x-request-id: ecd2370c-0dc9-419d-8c70-b78a83b1eaea-1727747192

2024-10-01T01:46:32.764Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store raphael-lima.myshopify.com:
[]

2024-10-01T01:46:32.764Z: Getting session store...
2024-10-01T01:46:32.765Z: 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": "raphael-lima.myshopify.com"
}
}

2024-10-01T01:46:32.765Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-10-01T01:46:32.766Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:

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

2024-10-01T01:46:33.087Z: Request to https://accounts.shopify.com/oauth/introspection completed in 321 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/"df2000595fb859b2a665c5587ed80b16"
  • server-timing: processing;dur=36, socket_queue;dur=1.854, edge;dur=2.016, util;dur=0.0, cfRequestDuration;dur=180.999994
  • x-request-id: 09b380dd-501b-4b5d-afe9-448bf0c74ae8-1727747193

2024-10-01T01:46:33.089Z: The identity token is valid: true
2024-10-01T01:46:33.089Z:
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-01T01:46:33.371Z: Request to https://raphael-lima.myshopify.com/ completed in 282 ms
With response headers:

  • content-type: text/html; charset=utf-8
  • server-timing: processing;dur=10, db;dur=2, asn;desc="28573", edge;desc="CNF", country;desc="BR", theme;desc="131602448470", pageType;desc="index", servedBy;desc="5qxz", requestID;desc="07a5bad7-3d87-47e0-a820-3fd84bd1e718-1727747193", cfRequestDuration;dur=172.999859, ipv6
  • x-request-id: 07a5bad7-3d87-47e0-a820-3fd84bd1e718-1727747193

2024-10-01T01:46:33.374Z: Getting storefront password for shop lima-checkout-extension.myshopify.com...
2024-10-01T01:46:33.646Z: Request to https://raphael-lima.myshopify.com/password completed in 271 ms
With response headers:

  • cache-control: no-cache, no-store
  • content-type: text/html; charset=utf-8
  • server-timing: processing;dur=27;desc="gc:3", db;dur=5, asn;desc="28573", edge;desc="CNF", country;desc="BR", theme;desc="131602448470", pageType;desc="password", servedBy;desc="rch6", requestID;desc="3a118a31-d6f2-4baf-a7de-d0332163a9f5-1727747193", cfRequestDuration;dur=235.000134, ipv6
  • x-request-id: 3a118a31-d6f2-4baf-a7de-d0332163a9f5-1727747193

2024-10-01T01:46:33.647Z: Removing storefront password for lima-checkout-extension.myshopify.com...
╭─ error ────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Maximum call stack size exceeded │
│ │
│ To investigate the issue, examine this stack trace: │
│ at openSync (node:fs:562) │
│ at attempt │
│ (opt/homebrew/Cellar/shopify-cli/3.67.3/libexec/lib/node_modules/@shopify/cli/dist/chunk-NV2K2JNI.js:9332) │
│ at attempt │
│ (opt/homebrew/Cellar/shopify-cli/3.67.3/libexec/lib/node_modules/@shopify/cli/dist/chunk-NV2K2JNI.js:9337) │
│ at attempt │
│ (opt/homebrew/Cellar/shopify-cli/3.67.3/libexec/lib/node_modules/@shopify/cli/dist/chunk-NV2K2JNI.js:9337) │
│ at attempt │
│ (opt/homebrew/Cellar/shopify-cli/3.67.3/libexec/lib/node_modules/@shopify/cli/dist/chunk-NV2K2JNI.js:9337) │
│ at attempt │
│ (opt/homebrew/Cellar/shopify-cli/3.67.3/libexec/lib/node_modules/@shopify/cli/dist/chunk-NV2K2JNI.js:9337) │
│ at attempt │
│ (opt/homebrew/Cellar/shopify-cli/3.67.3/libexec/lib/node_modules/@shopify/cli/dist/chunk-NV2K2JNI.js:9337) │
│ at attempt │
│ (opt/homebrew/Cellar/shopify-cli/3.67.3/libexec/lib/node_modules/@shopify/cli/dist/chunk-NV2K2JNI.js:9337) │
│ at attempt │
│ (opt/homebrew/Cellar/shopify-cli/3.67.3/libexec/lib/node_modules/@shopify/cli/dist/chunk-NV2K2JNI.js:9337) │
│ at attempt │
│ (opt/homebrew/Cellar/shopify-cli/3.67.3/libexec/lib/node_modules/@shopify/cli/dist/chunk-NV2K2JNI.js:9337) │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

2024-10-01T01:46:33.829Z:
Running system process:
· Command: npm prefix
· Working directory: /Users/raphaellima/Shopify/projects/test-extension

2024-10-01T01:46:33.948Z: Obtaining the dependency manager in directory /Users/raphaellima/Shopify/projects/test-extension...
2024-10-01T01:46:33.953Z:
Running system process:
· Command: /opt/homebrew/opt/ruby/bin/ruby -v
· Working directory: /Users/raphaellima/Shopify/projects/test-extension

2024-10-01T01:46:34.256Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 284 ms
With response headers:

  • x-request-id: 09e2b44a-f584-4589-8239-a7c26ad6c642

2024-10-01T01:46:34.257Z: Analytics event sent: {
"command": "app dev",
"time_start": 1727747184333,
"time_end": 1727747193827,
"total_time": 9494,
"success": false,
"cli_version": "3.67.3",
"ruby_version": "3.3.5",
"node_version": "22.9.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": "97ee7b7f0566257f7dafed65f507cb9070cafce1",
"env_cloud": "localhost",
"env_package_manager": "npm",
"env_is_global": true,
"cmd_app_warning_api_key_deprecation_displayed": false,
"cmd_app_all_configs_any": true,
"cmd_app_all_configs_clients": "{"shopify.app.test-app.toml":"a12ef956f9cd0c5b2e47d6c7361b0334","shopify.app.toml":"81d1fcabeff7b71d7db4a572476f5488"}",
"cmd_app_linked_config_used": true,
"cmd_app_linked_config_name": "shopify.app.test-app.toml",
"cmd_app_linked_config_git_tracked": true,
"cmd_app_linked_config_source": "flag",
"cmd_app_linked_config_uses_cli_managed_urls": true,
"partner_id": 2572053,
"api_key": "****",
"project_type": "node",
"app_extensions_any": true,
"app_extensions_breakdown": "{"theme":1}",
"app_extensions_count": 1,
"app_extensions_custom_layout": false,
"app_extensions_function_any": false,
"app_extensions_function_count": 0,
"app_extensions_theme_any": true,
"app_extensions_theme_count": 1,
"app_extensions_ui_any": false,
"app_extensions_ui_count": 0,
"app_name_hash": "9c6325608d4734f4bae4891a9654165dce36a8bb",
"app_path_hash": "2f21c2000e39769f85a5114a7daf999a852b18db",
"app_scopes": "[]",
"app_web_backend_any": true,
"app_web_backend_count": 1,
"app_web_custom_layout": true,
"app_web_framework": "remix",
"app_web_frontend_any": true,
"app_web_frontend_count": 1,
"env_package_manager_workspaces": true,
"cmd_deploy_include_config_used": true,
"cmd_deploy_config_modules_breakdown": "["access_scopes","application_url","auth","embedded","handle","name","pos","webhooks"]",
"cmd_deploy_config_modules_updated": "["application_url","auth"]",
"cmd_all_timing_network_ms": 7108,
"cmd_all_timing_prompts_ms": 0,
"cmd_all_launcher": "unknown",
"cmd_all_topic": "app",
"cmd_all_plugin": "@shopify/app",
"cmd_all_verbose": true,
"cmd_all_path_override": true,
"cmd_all_path_override_hash": "2f21c2000e39769f85a5114a7daf999a852b18db",
"cmd_app_dependency_installation_skipped": false,
"cmd_app_reset_used": false,
"cmd_dev_tunnel_type": "cloudflare",
"cmd_all_timing_active_ms": 2385,
"cmd_all_exit": "unexpected_error",
"args": "--verbose",
"error_message": "Maximum call stack size exceeded",
"app_name": "test-extension",
"env_plugin_installed_all": "["@shopify/cli"]",
"metadata": "{"extraPublic":{},"extraSensitive":{}}"
}
2024-10-01T01:46:34.265Z: Reporting unhandled error to Bugsnag: Maximum call stack size exceeded
2024-10-01T01:46:34.290Z:
Running system process:
· Command: npm prefix
· Working directory: /Users/raphaellima/Shopify/projects/test-extension

2024-10-01T01:46:34.404Z: Obtaining the dependency manager in directory /Users/raphaellima/Shopify/projects/test-extension...

Reproduction steps

  1. shopify app init
  2. shopify app generate extension
  3. shopify app dev

Image
Image

Operating System

Mac OS Sequoia 15.0

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

3.67.3

Shell

zsh

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

v22.9.0

What language and version are you using in your application?

Javascript

@RaphaelLima123 RaphaelLima123 added the Type: Bug Something isn't working label Oct 1, 2024
@RaphaelLima123
Copy link
Author

For some reason, it works when I run using sudo

@isaacroldan isaacroldan added the Area: @shopify/theme @shopify/theme package issues label Oct 15, 2024
@jamesmengo
Copy link
Contributor

Hey @RaphaelLima123!

I believe this is an issue that arises when you use sudo to install the CLI.

Can you try these steps in order and let me know if it resolves your issue?

  1. Reinstall Shopify CLI
  • Uninstall shopify CLI with your chosen package manager
  • Re-install shopify CLI @shopify/cli@latest without specifying sudo
  • Try again
  1. If that doesn't work, you can try running this command
    sudo chown $USER ~/Library/Preferences/shopify-cli-{app-command,development-theme-config,kit,theme-conf,theme-store-password}-nodejs

If you don't mind, could you please update this thread which which method worked for you (if any)?

Thanks!

@RaphaelLima123
Copy link
Author

@jamesmengo it workt! Thank you!

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