T
TanStack3mo ago
afraid-scarlet

Optional path params not working

Always redirect to not found page
No description
No description
12 Replies
provincial-silver
provincial-silver3mo ago
Can you provide a minimal reproduction? You can use one of the stackblitz examples in the docs as a starting point
afraid-scarlet
afraid-scarletOP3mo ago
@bostonsheraff I can't because this is a company project. @bostonsheraff but i can provide more information about the source code
fascinating-indigo
fascinating-indigo3mo ago
@Rin whats the path that tanstack generates for your file ?
export const Route = createFileRoute(/* here */) ...
export const Route = createFileRoute(/* here */) ...
afraid-scarlet
afraid-scarletOP3mo ago
@Olivier Deschênes Here. This is the generated route file.
No description
afraid-scarlet
afraid-scarletOP3mo ago
no answer for this...
rival-black
rival-black3mo 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.
afraid-scarlet
afraid-scarletOP3mo ago
@Nico Lynzaad I will prepare a minimal reproduction
afraid-scarlet
afraid-scarletOP3mo ago
@Nico Lynzaad the problem was solved after i upgraded the version of tanstack router
No description
afraid-scarlet
afraid-scarletOP3mo 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
afraid-scarlet
afraid-scarletOP3mo ago
and i also checked the issue on github it is indeed fixed since version 1.128.7
No description
afraid-scarlet
afraid-scarletOP3mo ago
this is my mistake Thanks for all the support
rival-black
rival-black3mo ago
Glad it's resolved

Did you find this page helpful?