✖ Error: Unable to build indexes and run schema validation on...
While running convex
npx convex dev
, I'm starting to get the following error on a seemingly frequent basis.
I see that it logs a network error, but does it have anything to do with how ive setup my schema?
This is purely from speculation, but I'm wondering if it's because I have some long-winded indexes (char length).
Not sure what the limitations are around naming indexes (aside from accept only letters, numbers, and underscores).4 Replies
Does your schema import very large packages? I wonder if it's trying to upload too large of a bundle for schema validation
import packages? Not sure if we're talking about the same thing but my guess is that in my schema.ts file, i may have too many nested and chained indexes.
Here's an example of the indexes for a table
i have about 1400 lines in my schema.ts file
by lines, i mean everything, not just the index definitions
the only imports in the file are
That error isn't something we've seen before. How many indexes do you have? That may help repro. And if you share the instance url (generally not sensitive but you can DM if you want) that could help us look into it
interesting, i will dm you