Shopify / js-buy-sdk

The JS Buy SDK is a lightweight library that allows you to build ecommerce into any website. It is based on Shopify's API and provides the ability to retrieve products and collections from your shop, add products to a cart, and checkout.

Home Page:https://shopify.github.io/js-buy-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Field must have selections field 'price' returns MoneyV2 but has no selections

jackdaniel8 opened this issue · comments

Please complete the checklist before filing an issue:

Bug details

Describe the bug

Hello, new bug that appeared recently on an application made in 2021.

[ { "message": "Field must have selections (field 'price' returns MoneyV2 but has no selections. Did you mean 'price { ... }'?)", "locations": [ { "line": 1, "column": 56 } ], "path": [ "fragment VariantFragment", "price" ], "extensions": { "code": "selectionMismatch", "nodeName": "field 'price'", "typeName": "MoneyV2" } }, { "message": "Field must have selections (field 'compareAtPrice' returns MoneyV2 but has no selections. Did you mean 'compareAtPrice { ... }'?)", "locations": [ { "line": 1, "column": 133 } ], "path": [ "fragment VariantFragment", "compareAtPrice" ], "extensions": { "code": "selectionMismatch", "nodeName": "field 'compareAtPrice'", "typeName": "MoneyV2" } } ]

Environment (please complete the following information):
"@types/shopify-buy": "^2.10.5",

Do you have any idea what is causing this error now? This is not an application made by us, so we only need a little help.