Field 'fetchResult' doesn't exist on type 'Input' while npm run dev

Field 'fetchResult' doesn't exist on type 'Input' while npm run dev

ankit022023
Visitor
1 0 0

 

Hi
I am following this below link for local pickup delivery options generator with network access:
https://shopify.dev/docs/apps/functions/input-output/network-access/using-network-access

 

Could someone please provide insights or guidance on how to resolve this error? Any help or suggestions would be greatly appreciated.

Reply 1 (1)

SkylarRohter
Shopify Partner
5 0 0

Go into the directory for the extension and run:

shopify app function typegen

This will generate your types in api.ts and remove that error.