0xJijimi
0xJijimi4w ago

Resend component in monorepo

I'm struggling to get the Resend component to work in I'm getting this error:
Module '"../_generated/server"' has no exported member 'components'.
Module '"../_generated/server"' has no exported member 'components'.
This is the content of convex.config.ts:
import { defineApp } from "convex/server";
import resend from "@convex-dev/resend/convex.config";

const app = defineApp();
app.use(resend);

export default app;
import { defineApp } from "convex/server";
import resend from "@convex-dev/resend/convex.config";

const app = defineApp();
app.use(resend);

export default app;
Appreciate any help!
5 Replies
Convex Bot
Convex Bot4w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
Clever Tagline
Just FYI, I won't be able to spend a ton of time on this now (I'm at the start of my workday), but I'll pop in when I can. For starters, what version of Convex are you using? Any issues reported when you run npx convex dev? (aside from the one that started this thread) Speaking of which, where exactly are you seeing that error?
0xJijimi
0xJijimiOP4w ago
I was using 1.26.2, but just updated to 1.27.5, but this did not resolve the issue. I see the error in the terminal when running npx convex dev. No other errors.
Clever Tagline
Could you share the code snippet from the file where you're trying to use the component?
0xJijimi
0xJijimiOP4w ago
I wasn't importing it correctly: this is how it needs to be imported: import { components } from "../_generated/api"; This should fix it. Thank you for your help!

Did you find this page helpful?