Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hello, I'm trying to register app/uninstall webhook (nodejs, NestJS framework)
await Shopify.Webhooks.Registry.register({
path: `${process.env.HOST}/webhooks/`,
topic: 'app/uninstalled',
accessToken: accessToken,
shop: shopName,
});
but it's giving me an error
TypeError: Cannot read properties of undefined (reading 'webhookSubscriptions')
backend | at Object.<anonymous> (/app/node_modules/@shopify/shopify-api/dist/webhooks/registry.js:120:51)
Please tell me what I'm doing wrong.
Thanks