Running npm run deploy to deploy checkout extensions and receiving the following error:
The Partners GraphQL API responded unsuccessfully with the HTTP status │
│ 200 and errors: │
│ │
│ [ │
│ { │
│ "message": "InputObject 'DeploymentCreateInput' doesn't accept │
│ argument 'label'", │
│ "locations": [ │
│ { │
│ "line": 10, │
│ "column": 93 │
│ } │
│ ], │
│ "path": [ │
│ "mutation CreateDeployment", │
│ "deploymentCreate", │
│ "input", │
│ "label" │
│ ], │
│ "extensions": { │
│ "code": "argumentNotAccepted", │
│ "name": "DeploymentCreateInput", │
│ "typeName": "InputObject", │
│ "argumentName": "label" │
│ } │
│ }, │
│ { │
│ "message": "Variable $label is declared by CreateDeployment but not │
│ used", │
│ "locations": [ │
│ { │
│ "line": 2, │
│ "column": 3 │
│ } │
│ ], │
│ "path": [ │
│ "mutation CreateDeployment" │
│ ], │
│ "extensions": { │
│ "code": "variableNotUsed", │
│ "variableName": "label" │
│ } │
│ } │
│ ] │
│ │
│ │
│ To investigate the issue, examine this stack trace: │
│ at makeRequest (graphql-request/src/index.ts:441) │
│ throw new ClientError( │
│ at processTicksAndRejections (node:internal/process/task_queues:96) │
│ at async debugLogResponseInfo │
│ (@shopify/cli-kit/src/private/node/api.ts:25) │
│ response = await request │
│ at async graphqlRequest │
│ (@shopify/cli-kit/src/public/node/api/graphql.ts:44) │
│ const response = await debugLogResponseInfo( │
│ at async uploadExtensionsBundle │
│ (@shopify/app/src/cli/services/deploy/upload.ts:130) │
│ const result: CreateDeploymentSchema = await partnersRequest(mutation, │
│ options.token, variables) │
│ at task (@shopify/app/src/cli/services/deploy.ts:125) │
│ ;({validationErrors, deploymentId} = await uploadExtensionsBundle({ │
│ at async runTask │
│ (@shopify/cli-kit/src/private/node/ui/components/Tasks.tsx:43) │
│ return await task.task(ctx, task) │
│ at async runTasks │
│ (@shopify/cli-kit/src/private/node/ui/components/Tasks.tsx:76) │
│ const subTasks = await runTask(task, ctx.current)
I’ve found some related discussions regarding this here and here but the error messages were slightly different.
Works fine when I run npm run dev, this is only encountered when I run npm run deploy or npm run deploy – --reset.