Weird type inference behavior
I've tried to restart my TS server but I keep getting weird inference on this line:
And no idea why...


5 Replies
Notice the
| 30 more
. Type inference of the schema is failing for you, and you’re getting a union of all your document types.
I’d revert changes you made and reaply to see what’s causing it.hmm that's really weird tho, the rest of my codebase doesn't show any errors or this weird behavior. for now i just added ts-ignore on the lines that access fields of
field
🫣What about a typo somewhere. Is it
firestoreFields
in both the field type and the table name?Ive seen this quite a bit and have wondered where i should see it and not see it. I use ents however. But i do have a native convex file right now. Its simple to trigger this and to fix it.
Thanks @ampp that's a nice workaround!