Vignesh GuptaV

Type error: Type instantiation is excessively deep and possibly infinite.

I've recently started with Turborepo and migrated my existing app to turborepo. And fixes the issue but while deployment I'm having a type issue with a query that I'm using in NextJS api route

Error:
web:build: ./app/api/changelog/[id]/route.ts:7:41
web:build: Type error: Type instantiation is excessively deep and possibly infinite.
web:build: 
web:build:    5 | export async function GET(_: Request, context: { params: ProjectId }) {
web:build:    6 |   try {
web:build: >  7 |     const changelogs = await fetchQuery(api.changelog.list, {
web:build:      |                                         ^
web:build:    8 |       projectId: context.params.id,
web:build:    9 |       showPublished: true,
web:build:   10 |     });
image.png
Was this page helpful?