While attempting to call the resolver using the invoke method, I encountered an issue with the resolver.
Error:
Uncaught (in promise) Error: There was an error invoking the function - Cannot read properties of undefined (reading ‘fetch’)
Hard to say just from that error.
In you reslover are you calling api.fetch
without importing api
from @forge/api
maybe?
Perhaps you could provide a code example?
@AdamMoore …I am not using anywhere in my forge application.
Forge index.js file:
Custom UI react App.js file:
manifest.yml
Tunnel response is :
You’re invoking a backend resolver called licensed
but I don’t see it being defined in your index.js
file (unless your screenshot is cutting off the rest of your code).
Also next time, please provide code examples as text instead of screenshots. You can use code blocks to format them for better readability.
1 Like