calvin
calvin2mo ago

Module '"../_generated/api"' has no exported member 'components'.

Ive done everything according to the docs, added the cron to components in the convex.config.ts and ran npx convex dev but getting this error. Any ideas? Heres my convex.config.ts:
import { defineApp } from "convex/server";
import crons from "@convex-dev/crons/convex.config";

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

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

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

export default app;
2 Replies
Convex Bot
Convex Bot2mo 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!
calvin
calvinOP2mo ago
Figured it out, the convex.config.ts needs ot go into the convex folder not root..

Did you find this page helpful?