convex shows generic error
I am receiving this generic error. How can I move forward?
✖ Error: Unable to start push to
[app] | ✖ Error fetching POST http://.... 400 Bad Request: InvalidSchemaExport: Hit an error while pushing:
[app] | Hit an error while evaluating your schema:
[app] | Default export from schema file isn't a Convex schema. To learn more, see the schema documentation at https://docs.convex.dev/database/schemas.
The error is during the dev process.
2 Replies
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!
Your
convex/schema.ts
must have a default export of defineSchema()
, like you see in the linked in example. Eg.,