Closed danielvoelk closed 6 months ago
When I try to get the shop name, I get the error:
shopify.baseUrl.hostname
Property 'baseUrl' does not exist on type 'Shopify'.
I checked the type definition and it's not there. Why?
What is the correct approach to get the shop name from the shopify instance?
`const shopify: Shopify = new Shopify({ shopName: '', accessToken: '', autoLimit: true, apiVersion: process.env.SHOPIFY_API_VERSION, });
// get shop name shopify...`
const shop = await shopify.shop.get();
Great, that worked. thank you
When I try to get the shop name, I get the error:
shopify.baseUrl.hostname
Property 'baseUrl' does not exist on type 'Shopify'.
I checked the type definition and it's not there. Why?
What is the correct approach to get the shop name from the shopify instance?
`const shopify: Shopify = new Shopify({ shopName: '', accessToken: '', autoLimit: true, apiVersion: process.env.SHOPIFY_API_VERSION, });
// get shop name shopify...`