get-convex / get-convex/crons

components not generated when using cron

Open
#9 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6
Forks
6
Avg merge
10h 28m
Merged PRs (30d)
2

Description

I added the convex.config.ts as described but getting the following error. And Yes that is what I am getting when I run `npx convex dev`

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

2 import { components } from "../_generated/api";
```

```
import { Crons } from "@convex-dev/crons";
import { components } from "../_generated/api";

export const crons = new Crons(components.crons);
```

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

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

export default app;
```

Help much appreciated.

Contributor guide

Open the contributing guide

Research direction

Start with convex.config.ts and the generated ../_generated/api while reproducing the issue with npx convex dev. Check why the configured crons component is not exported as components, and confirm the import in the cron setup compiles once generation completes.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.