Schema validation failing for weird reason
Error fetching POST https://.../api/prepare_schema 400 Bad Request: Error: Hit an error while evaluating your schema:
[CONVEX] Uncaught TypeError: Cannot read properties of undefined (reading 'fields')
[CONVEX] at <anonymous> (../convex/tables/tableViews/tableViews.ts:43:18)
Not really sure why this is happening given that I have correct type inference...
4 Replies
What does the import line actually look like?
import { vFireviewBaseFields } from "../../schema";
seems like moving the vFireviewBaseFields export to another file solved the issueMaybe you had a dependency cycle when defining the schema?
yeah that's probably it!