HussamH
tRPC3y ago
18 replies
Hussam

The inferred type of this node exceeds the maximum length the compiler will serialize.

Hey, there I am running into this error when I have more than 12 routers in the mergeRouters function.
The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.

version: latest
related: https://github.com/trpc/trpc/issues/2568 // that din't work for me.
GitHub
Provide environment information System: OS: macOS 12.5 CPU: (10) arm64 Apple M1 Pro Memory: 152.64 MB / 32.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/...
[v10] bug: TypeScript not willing to serialize the type of my clien...
Was this page helpful?