You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're seeing this issue too. The problem only occurs when we try to export type the type returned from InferType.
We have a monorepo and disabling "declaration": true, is likely a non-starter for us too. This error is distinct from the "excessively deep and possibly infinite" error, so my impression is that the type is indeed finite - just that it exceeds what TS is willing to serialize into a .d.ts file.
I see similar issues on the underlying Zod GH project - one person suggested a hacky yarn patch to increase the TS serialization length limit.
Hi!
I get some weird errors when splitting queries into multiple files:
This returns the error:
The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed
Of course explicitly typing the query kinda ruins the point heh.
Adding this to mu
tsconfig.json
file removes the error:The text was updated successfully, but these errors were encountered: