Skip to content

[TRI-1230] TypeScript "Type instantiation is excessively deep and possibly infinite.ts(2589)" error when using eventTrigger w/zod schema (different Zod versions) #436

@ericallam

Description

@ericallam

When using the eventTrigger with zod to define the event schema TypeScript gives this error:

This only seems to be happening in Next.js projects created with create-t3-app. I've reproduced it here:

https://github.com/ericallam/t3-trigger-app/blob/bbade197052ae5d790c7b46509628a5c8d57ba94/src/jobs/examples.ts#L19

We need to track down the issue and figure out how to fix it (or provide a workaround for t3-app)

From SyncLinear.com | TRI-1230

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions