failed to compile ( Argument of type '{ query: string; sortBy: string; }' )
alisufiyan123 opened this issue · 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 | }
anyone ???
Hey @alisufiyan123, we found the cause of the issue, We'll fix and let you know right away.
This is fixed and merged in #37