Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

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 1

 

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.