#Schema validation failing for weird reason

5 messages · Page 1 of 1 (latest)

normal vortex
#

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...

vapid maple
#

What does the import line actually look like?

normal vortex
#

import { vFireviewBaseFields } from "../../schema";

#

seems like moving the vFireviewBaseFields export to another file solved the issue

vapid maple
#

Maybe you had a dependency cycle when defining the schema?