- TypeScript type-checking fails.
- A required env var is missing.
- A Convex schema migration conflicts.
Common causes
Missing required env var
Missing required env var
Look for “process.env.X is undefined” in the build log. Set the env var in the appropriate environment.
Type mismatch from schema change
Type mismatch from schema change
A schema field changed type but a query still references the old type. Re-prompt to fix, or hand-edit the query.
Import resolves to nothing
Import resolves to nothing
Often after renaming a file. Cmd+Shift+F to find broken imports; fix the path.
Convex migration conflict
Convex migration conflict
Two branches changed the same field. Resolve by picking one; re-prompt the conflicting branch with the resolution.
Reading the build log
In vly’s editor → Deploys → click the failed build. The log shows:- Build start time.
- Type-check pass (or fail with specific errors).
- Bundle pass.
- Deploy pass.
Fixing
The fastest fix path:1
Read the error message
Most errors are clear once read carefully.
2
Re-prompt to fix
“Fix the TypeScript error on line 42 of
components/TaskRow.tsx.” The agent reads the error and applies the right fix.3
Or hand-edit in Code mode
For one-line fixes, manual is fastest.
4
If the schema is the issue
Check
convex/schema.ts and the affected query for type alignment.Related
Common errors
Specific patterns.
Convex migrations
Schema evolution.
Debugging workflow
Systematic approach.
