David Alonso
David Alonso7mo ago

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...
No description
No description
4 Replies
Michal Srb
Michal Srb7mo ago
What does the import line actually look like?
David Alonso
David AlonsoOP7mo ago
import { vFireviewBaseFields } from "../../schema"; seems like moving the vFireviewBaseFields export to another file solved the issue
Michal Srb
Michal Srb7mo ago
Maybe you had a dependency cycle when defining the schema?
David Alonso
David AlonsoOP7mo ago
yeah that's probably it!

Did you find this page helpful?