AmanXA
Convex Community3mo ago
10 replies
AmanX

convex dodopayments component issue

Hey everyone
I’m testing the new https://www.convex.dev/components/dodopayments (DodoPayments integration) with Convex.

My setup:
Next.js + TypeScript
Convex + Clerk
DodoPayments official Convex component docs

Problem:
Inside my convex/dodo.ts, Convex doesn’t recognize ctx.db inside the identify callback.

TypeScript error:
Property 'db' does not exist on type 'GenericActionCtx<any>'

I’ve already tried adding:
- import type { MutationCtx } from "./_generated/server"
- explicit (ctx: MutationCtx)
- running npx convex dev again and again

But Convex still doesn’t recognize ctx.db within identify.
Can anyone from the Convex team confirm the correct context type or best practice for using ctx.db inside DodoPayments identify?

thanks in advance.
image.png
image.png
Convex
Dodo Payments is your complete solution for billing and payments, purpose-built for AI and SaaS applications.
Dodo Payments
Was this page helpful?