Skip to content

Conversation

kyu08
Copy link

@kyu08 kyu08 commented Oct 1, 2025

Thank you for maintaining Genkit always!
Genkit provides us high productivity and flexibility. 👍

Problem I encountered

I got a following error when I tried this example

• Object literal may only specify known properties, and 'context' does not exist in type '{ contextProvider?: ContextProvider<ActionContext, ZodObject<{ input: ZodString; }, "strip", ZodTypeAny, { input: string; }, { input: string; }>>; }'. 

Solution

As of @genkit-ai/[email protected], it works if I specify contextProvider instead of context.

So I replaced context with contextProvider.

Testing

I have confirmed it looks fine as below locally by running pnpm dev.

CleanShot 2025-10-01 at 21 02 25@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant