`Route.fullPath` not accessible from lazy file route?

Here is a lazy route I've defined:

export const Route = createLazyFileRoute('/auth/reset-password/')({
  component: ResetPassword,
});


Later on (in the ResetPassword), I try and access Route.fullPath. TS gives me this: Property 'fullPath' does not exist on type 'LazyRoute<Route<RootRoute<RootSearchSchema, RootSearchSchema, RootSearchSchema, RouteContext, RouteContext, {}, {}, unknown, unknown>, ... 18 more ..., unknown>>'.ts(2339)

I don't see it show up in the autocomplete. Is this expected behavior? I figured so, but didn't see it documented anywhere.

My initial workaround was to create an empty non-lazy route, import that route, and access from there.
Was this page helpful?