billysyrett
billysyrett
CCConvex Community
Created by billysyrett on 12/21/2023 in #support-community
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
convex
├── projects
│   └── activities.ts
└── projects.ts
I like this structure as I can put basic functions in the main file:
useQuery(api.projects.get)
useQuery(api.projects.get)
and have more advanced functions separated:
useQuery(api.projects.activities.get)
useQuery(api.projects.activities.get)
There are no errors in the api.d.ts file and I'm running convex 1.7.1
4 replies