billysyrettB
Convex Community3y ago
3 replies
billysyrett

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:

convex
├── projects
│   └── activities.ts
└── projects.ts


I like this structure as I can put basic functions in the main file:
useQuery(api.projects.get)


and have more advanced functions separated:
useQuery(api.projects.activities.get)


There are no errors in the api.d.ts file and I'm running convex 1.7.1
Was this page helpful?