cli: [Bug]: issue with running npm run deploy.

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?

Function

Expected behavior

It should work without error and can deploy it.

Actual behavior

The main error is : Error coming from npm exec -- javy compile -d -o /Users/Mao/Development/Shopify-function-app/apps/extensions/shipping-rate/dist/function.wasm dist/function.js

And it does not have file function_wasm dist/function.js in the dist folder, which only has function.js.

The verbose running result:

 npm run deploy -- --verbose 

> apps@1.0.0 deploy
> shopify app deploy --verbose

2023-08-08T13:13:38.346Z: Running command app deploy
2023-08-08T13:13:38.399Z: Reading cached app information for directory /Users/Mao/Development/Shopify-function-app/apps...
2023-08-08T13:13:38.400Z: Reading the content of file at shopify.app.toml...
2023-08-08T13:13:38.402Z: Reading the content of file at shopify.app.toml...
2023-08-08T13:13:38.405Z: Reading the content of file at shopify.app.toml...
2023-08-08T13:13:38.407Z: Reading the .env file at .env
2023-08-08T13:13:38.407Z: Reading the content of file at .env...
2023-08-08T13:13:38.410Z: Reading the content of file at extensions/shipping-rate/shopify.function.extension.toml...
2023-08-08T13:13:38.413Z: Reading the content of file at package.json...
2023-08-08T13:13:38.413Z: Reading the content of file at package.json...
2023-08-08T13:13:38.414Z: Obtaining the dependency manager in directory /Users/Mao/Development/Shopify-function-app/apps...
2023-08-08T13:13:38.418Z: Reading the content of file at web/shopify.web.toml...
2023-08-08T13:13:38.422Z: Reading the content of file at package.json...
2023-08-08T13:13:38.424Z: Ensuring that the user is authenticated with the Partners API with the following scopes:
[]

2023-08-08T13:13:38.427Z: Getting session store...
2023-08-08T13:13:38.428Z: 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": []
  }
}

2023-08-08T13:13:38.429Z: Sending GET request to URL https://accounts.shopify.com/.well-known/openid-configuration.json
With request headers:
 - User-Agent: Shopify CLI; v=3.48.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2023-08-08T13:13:38.731Z: Request to https://accounts.shopify.com/.well-known/openid-configuration.json completed in 292 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/"1eb4e9d462ffcdab29ed596345fa4cb0"
 - x-request-id: f4c6f45a-fe8c-4c1b-bdc4-650462cd7f71
    
2023-08-08T13:13:38.759Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2023-08-08T13:13:38.759Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.48.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2023-08-08T13:13:38.886Z: Request to https://accounts.shopify.com/oauth/introspection completed in 125 ms
With response headers:
 - cache-control: no-cache
 - content-type: text/html
 - x-request-id: 4fcd76ea-36e2-4a2e-a234-c611ce1421a9
    
2023-08-08T13:13:38.887Z: The Introspection request failed with:
 - status: 401
 - www-authenticate header: "error=\"invalid_token\",error_description=\"The access token provided is expired, revoked, malformed or invalid for other reasons.\""
 - body: ""
2023-08-08T13:13:38.888Z: 
The validation of the token for application/identity completed with the following results:
- It's expired: true
- It's invalid in identity: true
  
2023-08-08T13:13:38.888Z: The current session is valid but needs refresh. Refreshing...
2023-08-08T13:13:38.890Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_6921ea6b9bc09137241af783f7aaee80dcd4692b37b4681afb98b8f465f643a9&refresh_token=atkn_13be0fd0888be1b73e85ac47a46ede439f7b287934c32184e2c4bf0503e384ab&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3
With request headers:
 - User-Agent: Shopify CLI; v=3.48.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2023-08-08T13:13:39.268Z: Request to https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_6921ea6b9bc09137241af783f7aaee80dcd4692b37b4681afb98b8f465f643a9&refresh_token=atkn_13be0fd0888be1b73e85ac47a46ede439f7b287934c32184e2c4bf0503e384ab&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3 completed in 377 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/"0c19b81293d4f9814972f8845bd7e6ed"
 - x-request-id: 895bde6c-c176-43d9-bc12-148f221e6810
    
2023-08-08T13:13:39.271Z: 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=atkn_4ca824b0aac840a5cc5c07ce0b259c4e3f98b202da32bfbfcaf39933d875ddee
With request headers:
 - User-Agent: Shopify CLI; v=3.48.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2023-08-08T13:13:39.271Z: 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=atkn_4ca824b0aac840a5cc5c07ce0b259c4e3f98b202da32bfbfcaf39933d875ddee
With request headers:
 - User-Agent: Shopify CLI; v=3.48.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2023-08-08T13:13:39.271Z: 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=atkn_4ca824b0aac840a5cc5c07ce0b259c4e3f98b202da32bfbfcaf39933d875ddee
With request headers:
 - User-Agent: Shopify CLI; v=3.48.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2023-08-08T13:13:39.418Z: 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=atkn_4ca824b0aac840a5cc5c07ce0b259c4e3f98b202da32bfbfcaf39933d875ddee completed in 145 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/"2d7e38ee5a73e8c34fda2f4b1b04cd25"
 - x-request-id: 7fb26baa-e479-40b0-bf21-3ed880a90b39
    
2023-08-08T13:13:39.620Z: 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=atkn_4ca824b0aac840a5cc5c07ce0b259c4e3f98b202da32bfbfcaf39933d875ddee completed in 346 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/"fe1e86eee975bcd1bedaac6b91d4fd66"
 - x-request-id: 73f1ddb1-057b-45b6-8bee-9cc3f0860237
    
2023-08-08T13:13:39.676Z: 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=atkn_4ca824b0aac840a5cc5c07ce0b259c4e3f98b202da32bfbfcaf39933d875ddee completed in 403 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/"0c25872c3cdeeabe397de0c69a08ef52"
 - x-request-id: ca762d33-e908-4dfd-a561-8151599080a0
    
2023-08-08T13:13:39.678Z: Setting session store...
2023-08-08T13:13:39.703Z: Verifying that the user has a Partner organization
2023-08-08T13:13:39.704Z: Sending "Partners" GraphQL request:
  {
    organizations(first: 1) {
      nodes {
        id
      }
    }
  }

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

2023-08-08T13:13:39.965Z: Request to https://partners.shopify.com/api/cli/graphql completed in 229 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"63b4ae126703e8e31ae4434e479b3e02"
 - x-request-id: c14c8fa0-4c44-4a5c-a2f2-6da436cd5d0c
    
2023-08-08T13:13:39.967Z: Sending "Partners" GraphQL request:
  query FindApp($apiKey: String!) {
    app(apiKey: $apiKey) {
      id
      title
      apiKey
      organizationId
      apiSecretKeys {
        secret
      }
      appType
      grantedScopes
      betas {
        unifiedAppDeployment
        unifiedAppDeploymentOptIn
      }
      applicationUrl
      redirectUrlWhitelist
      requestedAccessScopes
      webhookApiVersion
      embedded
      posEmbedded
      preferencesUrl
      gdprWebhooks {
        customerDeletionUrl
        customerDataRequestUrl
        shopDeletionUrl
      }
      appProxy {
        subPath
        subPathPrefix
        url
      }
    }
  }

With variables:
{
  "apiKey": "8277d5bea1264dc146e47dadd6bc1831"
}

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

2023-08-08T13:13:40.870Z: Request to https://partners.shopify.com/api/cli/graphql completed in 901 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"b8e7d4ca4c7533f0bd693d19dc36fae2"
 - x-request-id: 102b351b-e2c5-41fe-9843-b0b147e0a6c5
    
2023-08-08T13:13:40.871Z: Sending "Partners" GraphQL request:
  query FindOrganization($id: ID!) {
    organizations(id: $id, first: 1) {
      nodes {
        id
        businessName
        website
      }
    }
  }

With variables:
{
  "id": "2350588"
}

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

2023-08-08T13:13:41.013Z: Request to https://partners.shopify.com/api/cli/graphql completed in 141 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"2c57500c9f6be586c710dc24e315577b"
 - x-request-id: 78028567-bd92-4677-9321-e887b89f3174
    
╭─ info ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                 │
│  Using these settings:                                                                                                          │
│                                                                                                                                 │
│    • Org:          Spartan Camera                                                                                               │
│    • App:          shipping-rates                                                                                               │
│                                                                                                                                 │
│   You can pass `--reset` to your command to reset your app configuration.                                                       │
│                                                                                                                                 │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

╭─ warning ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                 │
│  `npm run deploy` now releases changes to users.                                                                                │
│                                                                                                                                 │
│  All your extensions will be released to users, unless you add the `--no-release` flag.                                         │
│                                                                                                                                 │
│  Reference                                                                                                                      │
│    • Simplified extension deployment [1]                                                                                        │
│                                                                                                                                 │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
[1] https://shopify.dev/docs/apps/deployment/simplified-deployment

2023-08-08T13:13:41.064Z: Sending "Partners" GraphQL request:
  query allAppExtensionRegistrations($apiKey: String!) {
    app(apiKey: $apiKey) {
      extensionRegistrations {
        id
        uuid
        title
        type
        draftVersion {
          config
        }
        activeVersion {
          config
        }
      }
      dashboardManagedExtensionRegistrations {
        id
        uuid
        title
        type
        activeVersion {
          config
        }
        draftVersion {
          config
        }
      }
      functions {
        id
        uuid
        title
        type: apiType
      }
    }
  }

With variables:
{
  "apiKey": "8277d5bea1264dc146e47dadd6bc1831"
}

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

2023-08-08T13:13:42.275Z: Request to https://partners.shopify.com/api/cli/graphql completed in 1209 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"50a5ef71c9e3b3127d2ede96bda2ae67"
 - x-request-id: 0143aaad-be15-454a-8adb-e9097e37bc89
    
2023-08-08T13:13:42.386Z: Sending "Partners" GraphQL request:
  query activeAppVersion($apiKey: String!) {
    app(apiKey: $apiKey) {
      activeAppVersion {
        appModuleVersions {
          registrationId
          registrationUuid
          registrationTitle
          type
          specification {
            identifier
            name
            options {
              managementExperience
            }
          }
        }
      }
    }
  }

With variables:
{
  "apiKey": "8277d5bea1264dc146e47dadd6bc1831"
}

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

2023-08-08T13:13:42.970Z: Request to https://partners.shopify.com/api/cli/graphql completed in 583 ms
With response headers:
 - cache-control: max-age=0, private, must-revalidate
 - content-type: application/json; charset=utf-8
 - etag: W/"d5ea70ae5a5479d76b7523f6ab1ad796"
 - x-request-id: 78a169eb-08c3-476b-aa87-02380a21ad6d
    
?  Release a new version of shipping-rates?
✔  Yes, release this new version


Releasing a new app version as part of shipping-rates

2023-08-08T13:13:46.192Z: Sync-creating directory at /private/var/folders/gw/05yjphkn1_g8sx87_qbn3lxw0000gp/T/04ad36db73b414ee755563cfd6b90a8b/bundle...
2023-08-08T13:13:46.193Z: Creating an empty file at /private/var/folders/gw/05yjphkn1_g8sx87_qbn3lxw0000gp/T/04ad36db73b414ee755563cfd6b90a8b/bundle/.shopify...
2023-08-08T13:13:46.204Z: 
Running system process:
  · Command: npm exec -- graphql-code-generator --config package.json
  · Working directory: /Users/Mao/Development/Shopify-function-app/apps/extensions/shipping-rate

shipping-rate │ Building function shipping-rate...
shipping-rate │ Building GraphQL types...
shipping-rate │ (node:48092) Warning: Label '@graphql-tools/load: collectSources' already exists for console.time()
shipping-rate │ (Use `node --trace-warnings ...` to show where the warning was created)
shipping-rate │ Bundling JS function...
shipping-rate │ Running javy...
2023-08-08T13:13:48.490Z: 
Running system process:
  · Command: npm exec -- javy compile -d -o /Users/Mao/Development/Shopify-function-app/apps/extensions/shipping-rate/dist/function.wasm dist/function.js
  · Working directory: /Users/Mao/Development/Shopify-function-app/apps/extensions/shipping-rate


── external error ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Error coming from `npm exec -- javy compile -d -o /Users/Mao/Development/Shopify-function-app/apps/extensions/shipping-rate/dist/function.wasm dist/function.js`

Command failed with exit code 1: npm exec -- javy compile -d -o /Users/Mao/Development/Shopify-function-app/apps/extensions/shipping-rate/dist/function.wasm dist/function.js

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

2023-08-08T13:13:49.192Z: Obtaining the dependency manager in directory /Users/Mao/Development/Shopify-function-app/apps...
2023-08-08T13:13:49.195Z: 
Running system process:
  · Command: ruby -v
  · Working directory: /Users/Mao/Development/Shopify-function-app/apps

2023-08-08T13:13:49.198Z: Obtaining the dependency manager in directory /Users/Mao/Development/Shopify-function-app/apps...
2023-08-08T13:13:49.199Z: 
Running system process:
  · Command: ruby -v
  · Working directory: /Users/Mao/Development/Shopify-function-app/apps

2023-08-08T13:13:49.471Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 83 ms
With response headers:
 - x-request-id: 45991192-cdcd-4044-a2d6-5e18955373e6
    
2023-08-08T13:13:49.472Z: Analytics event sent: {
  "command": "app deploy",
  "time_start": 1691500418348,
  "time_end": 1691500429196,
  "total_time": 10848,
  "success": true,
  "cli_version": "3.48.0",
  "ruby_version": "3.2.2",
  "node_version": "20.4.0",
  "is_employee": false,
  "uname": "darwin amd64",
  "env_ci": false,
  "env_plugin_installed_any_custom": false,
  "env_plugin_installed_shopify": "[\"@shopify/app\",\"@shopify/cli\",\"@shopify/plugin-cloudflare\",\"@shopify/plugin-did-you-mean\"]",
  "env_shell": "zsh",
  "env_device_id": "b60ad036ef6f9154586434bea24b5784419f46fe",
  "env_cloud": "localhost",
  "env_package_manager": "npm",
  "cmd_app_warning_api_key_deprecation_displayed": false,
  "cmd_deploy_flag_message_used": false,
  "cmd_deploy_flag_version_used": false,
  "cmd_deploy_flag_source_url_used": false,
  "project_type": "node",
  "app_extensions_any": true,
  "app_extensions_breakdown": "{\"delivery_customization\":1}",
  "app_extensions_count": 1,
  "app_extensions_custom_layout": false,
  "app_extensions_function_any": true,
  "app_extensions_function_count": 1,
  "app_extensions_theme_any": false,
  "app_extensions_theme_count": 0,
  "app_extensions_ui_any": false,
  "app_extensions_ui_count": 0,
  "app_name_hash": "8025087a9e2e8d0e95e2da2152e8be2f55276616",
  "app_path_hash": "1cc3966cf44bbd3e09f8a0f2b30fbd43baad730e",
  "app_scopes": "[\"write_products\"]",
  "app_web_backend_any": true,
  "app_web_backend_count": 1,
  "app_web_custom_layout": false,
  "app_web_framework": "unknown",
  "app_web_frontend_any": false,
  "app_web_frontend_count": 0,
  "env_package_manager_workspaces": true,
  "cmd_app_all_configs_any": false,
  "cmd_app_all_configs_clients": "{}",
  "cmd_app_linked_config_used": false,
  "cmd_app_deployment_mode": "unified",
  "cmd_deploy_confirm_new_registrations": 1,
  "cmd_deploy_confirm_updated_registrations": 0,
  "cmd_deploy_confirm_removed_registrations": 0,
  "cmd_deploy_confirm_cancelled": false,
  "cmd_deploy_confirm_time_to_complete_ms": 1691500422970,
  "partner_id": 2350588,
  "api_key": "8277d5bea1264dc146e47dadd6bc1831",
  "cmd_all_launcher": "npm",
  "cmd_all_topic": "app",
  "cmd_all_plugin": "@shopify/app",
  "cmd_all_verbose": true,
  "cmd_all_path_override": true,
  "cmd_all_path_override_hash": "1cc3966cf44bbd3e09f8a0f2b30fbd43baad730e",
  "cmd_app_reset_used": false,
  "args": "--verbose",
  "app_name": "apps",
  "env_plugin_installed_all": "[\"@shopify/app\",\"@shopify/cli\",\"@shopify/plugin-cloudflare\",\"@shopify/plugin-did-you-mean\"]",
  "metadata": "{\"extraPublic\":{},\"extraSensitive\":{}}"
}
2023-08-08T13:13:49.475Z: Completed command app deploy
2023-08-08T13:13:49.477Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 91 ms
With response headers:
 - x-request-id: dd29cc7f-997c-4763-bc3f-3b63e9ab2ff2
    
2023-08-08T13:13:49.477Z: Analytics event sent: {
  "command": "app deploy",
  "time_start": 1691500418348,
  "time_end": 1691500429184,
  "total_time": 10836,
  "success": false,
  "cli_version": "3.48.0",
  "ruby_version": "3.2.2",
  "node_version": "20.4.0",
  "is_employee": false,
  "uname": "darwin amd64",
  "env_ci": false,
  "env_plugin_installed_any_custom": false,
  "env_plugin_installed_shopify": "[\"@shopify/app\",\"@shopify/cli\",\"@shopify/plugin-cloudflare\",\"@shopify/plugin-did-you-mean\"]",
  "env_shell": "zsh",
  "env_device_id": "b60ad036ef6f9154586434bea24b5784419f46fe",
  "env_cloud": "localhost",
  "env_package_manager": "npm",
  "cmd_app_warning_api_key_deprecation_displayed": false,
  "cmd_deploy_flag_message_used": false,
  "cmd_deploy_flag_version_used": false,
  "cmd_deploy_flag_source_url_used": false,
  "project_type": "node",
  "app_extensions_any": true,
  "app_extensions_breakdown": "{\"delivery_customization\":1}",
  "app_extensions_count": 1,
  "app_extensions_custom_layout": false,
  "app_extensions_function_any": true,
  "app_extensions_function_count": 1,
  "app_extensions_theme_any": false,
  "app_extensions_theme_count": 0,
  "app_extensions_ui_any": false,
  "app_extensions_ui_count": 0,
  "app_name_hash": "8025087a9e2e8d0e95e2da2152e8be2f55276616",
  "app_path_hash": "1cc3966cf44bbd3e09f8a0f2b30fbd43baad730e",
  "app_scopes": "[\"write_products\"]",
  "app_web_backend_any": true,
  "app_web_backend_count": 1,
  "app_web_custom_layout": false,
  "app_web_framework": "unknown",
  "app_web_frontend_any": false,
  "app_web_frontend_count": 0,
  "env_package_manager_workspaces": true,
  "cmd_app_all_configs_any": false,
  "cmd_app_all_configs_clients": "{}",
  "cmd_app_linked_config_used": false,
  "cmd_app_deployment_mode": "unified",
  "cmd_deploy_confirm_new_registrations": 1,
  "cmd_deploy_confirm_updated_registrations": 0,
  "cmd_deploy_confirm_removed_registrations": 0,
  "cmd_deploy_confirm_cancelled": false,
  "cmd_deploy_confirm_time_to_complete_ms": 1691500422970,
  "partner_id": 2350588,
  "api_key": "8277d5bea1264dc146e47dadd6bc1831",
  "cmd_all_launcher": "npm",
  "cmd_all_topic": "app",
  "cmd_all_plugin": "@shopify/app",
  "cmd_all_verbose": true,
  "cmd_all_path_override": true,
  "cmd_all_path_override_hash": "1cc3966cf44bbd3e09f8a0f2b30fbd43baad730e",
  "cmd_app_reset_used": false,
  "args": "--verbose",
  "error_message": "Command failed with exit code 1: npm exec -- javy compile -d -o /Users/Mao/Development/Shopify-function-app/apps/extensions/shipping-rate/dist/function.wasm dist/function.js",
  "app_name": "apps",
  "env_plugin_installed_all": "[\"@shopify/app\",\"@shopify/cli\",\"@shopify/plugin-cloudflare\",\"@shopify/plugin-did-you-mean\"]",
  "metadata": "{\"extraPublic\":{},\"extraSensitive\":{}}"
}

Reproduction steps

  1. npm run deploy – --verbose

Operating System

MacOS ventura 13.0.1

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

3.48.0

Shell

No response

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

v20.4.0

What language and version are you using in your application?

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 45 (11 by maintainers)

Most upvoted comments

javy-cli 0.1.8 appears to work and compile successfully. Output from npm list javy-cli was:

wcw-functions@ /Users/matthew/Documents/WCW/wcw-function/wcw-functions
├─┬ @shopify/app@3.48.1
│ └── javy-cli@0.1.7
└── javy-cli@0.1.8

ls -lh ~/Library/Caches/binarycache/ output was:

total 107640
-rwxrwxr-x@ 1 matthew  staff    13M Aug 15 12:06 function-runner-v3.6.0
-rwxrwxr-x@ 1 matthew  staff    39M Aug 15 13:00 javy-v1.1.2

Yes your first suggestion was worked . I delete the Javy files in binarycache . cachenew

Thanks to @gonzaloriestra the problem was solved, I think it’s related to different versions of javy being installed, I just removed what you have mentioned above. and in my case, I also had to remove Yarn and use npm for it to deploy.

I think it’s safe to close this issue.