T
TanStack3y ago
stormy-gold

Type instantiation error when combining parseParams and deeply nested route tree

I'm getting the Type instantiation is excessively deep and possibly infinite. ts(2589) error, when I have a route with parseParams on the top of the route tree and more than 8 nested sub routes under it. Removing parseParams allows me to have more than 20 nested routes without the error. Any ideas what might be causing it? Running beta-150 Repro (see comments on code): https://stackblitz.com/edit/tanstack-router-gpxtkv?file=src%2Fmain.tsx
Joonas Tiala
StackBlitz
TS Router Type Instantiation bug - StackBlitz
Run official live example code for Router Quickstart, created by Tanstack on StackBlitz
7 Replies
stormy-gold
stormy-goldOP3y ago
I'm not sure if the problems is really related to parseParams or if it just happens when the typings become too complex. Either way, to me it seems like this is pretty major bug that should be taken care of. More discussion here: https://discord.com/channels/719702312431386674/1007702008448426065/1143064124515954799
eastern-cyan
eastern-cyan3y ago
Try with the latest version please
stormy-gold
stormy-goldOP3y ago
Already did try it with 151, didn’t fix it
eastern-cyan
eastern-cyan3y ago
Oh, my release didn't work Let me fix that
stormy-gold
stormy-goldOP3y ago
Right, I didn't see your msg on the channel 152 doesn't seem to fix it either unfortunately, same error
eastern-cyan
eastern-cyan3y ago
Hmm I might need to consult @Deleted User again
stormy-gold
stormy-goldOP3y ago
Seems like this is now fixed in 155. Great work!

Did you find this page helpful?