I’m trying to add subscriptions to my app following this file from https://github.com/Shopify/hydrogen/blob/main/examples/subscriptions/README.md.
I’ve gone to create the SellingPlanSelector component: https://github.com/Shopify/hydrogen/blob/main/examples/subscriptions/app/components/SellingPlanSelector.tsx however I get a ts error on SellingPlanGroupFragment and SellingPlanFragment as these are not exported from storefrontapi.generated.
This is the code:
import type {
ProductFragment,
SellingPlanGroupFragment,
SellingPlanFragment,
} from 'storefrontapi.generated';
I’m trying to implement this into my own store and haven’t started with a subscription template. I’ve added a subscription app (Subscription Plus) and created a plan which is on all products. I assume there must be some cli command to generate types again however I couldn’t find it in the docs. How can I fix this issue?