nextjs-shopify icon indicating copy to clipboard operation
nextjs-shopify copied to clipboard

failed to compile ( Argument of type '{ query: string; sortBy: string; }' )

Open alisufiyan123 opened this issue 3 years ago • 2 comments

problem poping when trying to npm run build and also in build checking while deploying on vercel ???

Type error: Argument of type '{ query: string; sortBy: string; }' is not assignable to parameter of type 'Query'. Object literal may only specify known properties, and 'sortBy' does not exist in type 'Query'.

./lib/shopify/storefront-data-hooks/src/api/operations.ts:70:5 68 | return client.product.fetchQuery({ 69 | query: searchString ? title:*${searchString}* : '',

70 | sortBy: title, | ^ 71 | }) 72 | }

alisufiyan123 avatar Jul 14 '22 08:07 alisufiyan123

anyone ???

alisufiyan123 avatar Jul 30 '22 11:07 alisufiyan123

Hey @alisufiyan123, we found the cause of the issue, We'll fix and let you know right away.

gustavocodess avatar Aug 03 '22 02:08 gustavocodess

This is fixed and merged in #37

teleaziz avatar Aug 15 '22 17:08 teleaziz