T
TanStack5mo ago
rare-sapphire

How do I solve this typescript error in Link object?

My linter is throwing a fit over this and I'm unsure what's wrong... based off the docs it looks correct to me!
Object literal may only specify known properties, and 'projectId' does not exist in type 'ParamsReducerFn<RouterCore<AnyRoute, "never", false, RouterHistory, Record<string, any>>, "PATH", string, "/projects/$projectId">'.ts(2353)
link.d.ts(121, 5): The expected type comes from property 'params' which is declared here on type 'IntrinsicAttributes & LinkComponentReactProps<"a"> & RequiredToOptions<RouterCore<AnyRoute, "never", false, RouterHistory, Record<...>>, string, "/projects/$projectId"> & ... 7 more ... & LinkPropsChildren'
Object literal may only specify known properties, and 'projectId' does not exist in type 'ParamsReducerFn<RouterCore<AnyRoute, "never", false, RouterHistory, Record<string, any>>, "PATH", string, "/projects/$projectId">'.ts(2353)
link.d.ts(121, 5): The expected type comes from property 'params' which is declared here on type 'IntrinsicAttributes & LinkComponentReactProps<"a"> & RequiredToOptions<RouterCore<AnyRoute, "never", false, RouterHistory, Record<...>>, string, "/projects/$projectId"> & ... 7 more ... & LinkPropsChildren'
No description
No description
1 Reply
fair-rose
fair-rose5mo ago
can you reproduce this in an example?

Did you find this page helpful?