T
TanStack2mo ago
national-gold

Optional path params not working

Always redirect to not found page
No description
No description
12 Replies
unwilling-turquoise
unwilling-turquoise2mo ago
Can you provide a minimal reproduction? You can use one of the stackblitz examples in the docs as a starting point
national-gold
national-goldOP2mo ago
@bostonsheraff I can't because this is a company project. @bostonsheraff but i can provide more information about the source code
correct-apricot
correct-apricot2mo ago
@Rin whats the path that tanstack generates for your file ?
export const Route = createFileRoute(/* here */) ...
export const Route = createFileRoute(/* here */) ...
national-gold
national-goldOP2mo ago
@Olivier Deschênes Here. This is the generated route file.
No description
national-gold
national-goldOP2mo ago
no answer for this...
provincial-silver
provincial-silver2mo ago
@Rin for us to assist you we do require a minimal reproduction (note this is not a copy of your code, just some code that does a similar action that results in the same error). you can build this using a stackblitz example as @bostonsheraff mentioned. Without a minimal reproduction we are unable to debug, pinpoint and resolve the issue.
national-gold
national-goldOP2mo ago
@Nico Lynzaad I will prepare a minimal reproduction
national-gold
national-goldOP2mo ago
@Nico Lynzaad the problem was solved after i upgraded the version of tanstack router
No description
national-gold
national-goldOP2mo ago
because i tried to create a minimal reproduction and it worked fine and when i checked the version there was a difference so i tried to upgrade
national-gold
national-goldOP2mo ago
and i also checked the issue on github it is indeed fixed since version 1.128.7
No description
national-gold
national-goldOP2mo ago
this is my mistake Thanks for all the support
provincial-silver
provincial-silver2mo ago
Glad it's resolved

Did you find this page helpful?