You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am developing with React and OSDK and encountered an error when trying to apply an action. I copied and pasted the sample code from the API documentation into the developer console, but I received an error message indicating that there is no client name, as shown in the screenshot below.
And the response from Jeg:
It looks like this code sample does not have the client imported, you will likely need to import the client from wherever it was instantiated:
import { client } from "../client.ts";
If you’ve used a template, if you don’t have a client already, they are made using code similar to
Based on this Community question:
And the response from Jeg:
We should give people some hint (either inline or via a link or comment) about how to instantiate the client and how to use the snippets in context.
The text was updated successfully, but these errors were encountered: