T
TanStack16mo ago
stormy-gold

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
mute-gold
mute-gold16mo ago
This can happen if the path cannot resolve to a route at the type level. Can you give a better example or reproduction?
stormy-gold
stormy-goldOP16mo ago
If its okay im trying it first with an image of my routes directory:
No description
stormy-gold
stormy-goldOP16mo ago
Im trying to navigate from appointments.$id to manage
stormy-gold
stormy-goldOP16mo ago
No description
stormy-gold
stormy-goldOP16mo ago
This ist the appointments.$id
mute-gold
mute-gold16mo ago
To do this you should use from prop to get type safety

Did you find this page helpful?