Type instantiation is excessively deep and possibly infinite.
Hi, I'm running into this error when trying to restructure my functions. It occurs when a folder has the same name as a file in the directory below.
For example, this structure will cause the error:
I like this structure as I can put basic functions in the main file:
and have more advanced functions separated:
There are no errors in the
api.d.ts
file and I'm running convex 1.7.1
3 Replies
Example
api.d.ts
file:
Hey @billysyrett, yeah I think we don't support this structure. You can instead put
export default const query(....
into projects/get.ts
Thanks - that'll work!