T
TanStack2y ago
future-harlequin

Type "../../" is not assignable to type "../../../"

Im always getting this error, when trying to navigate. The error only appears in the ide, the code works fine. When I use ../../../ I get: Type "../../../" is not assignable to type "../../../../" and so one.
6 Replies
rival-black
rival-black2y ago
This can happen if the path cannot resolve to a route at the type level. Can you give a better example or reproduction?
future-harlequin
future-harlequinOP2y ago
If its okay im trying it first with an image of my routes directory:
No description
future-harlequin
future-harlequinOP2y ago
Im trying to navigate from appointments.$id to manage
future-harlequin
future-harlequinOP2y ago
No description
future-harlequin
future-harlequinOP2y ago
This ist the appointments.$id
rival-black
rival-black2y ago
To do this you should use from prop to get type safety

Did you find this page helpful?