You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I have my TableAggregate's defined in their own and attempt to use them in another file, I get an insurmountable typescript error: Type instantiation is excessively deep and possibly infinite.
Notably, this has been a little fickle. I got it to work in in the first way (two files) after deleting and regenerating the Convex code, in addition to changing this line (the error occurs no matter what when I try to inline the Bounds object):
So the campaigns doesn't import from the queries otherwise? It sounds like a circular reference somewhere. To prove that out, does having the aggregate in its own file with nothing else fix it?
When I have my TableAggregate's defined in their own and attempt to use them in another file, I get an insurmountable typescript error:
Type instantiation is excessively deep and possibly infinite.
This query results in the following error:
I can't get this two-file structure to compile without the type instantiation error:
However, if both of these are in the same file, it works:
Notably, this has been a little fickle. I got it to work in in the first way (two files) after deleting and regenerating the Convex code, in addition to changing this line (the error occurs no matter what when I try to inline the
Bounds
object):This works in both cases:
This works only if defined in the same file as the aggregate:
The text was updated successfully, but these errors were encountered: