#validateSearch does not correctly type the Route.useSearch() hook
8 messages · Page 1 of 1 (latest)
Try validateSearch: searchSchema
same thing
@strong prairie do you have dev server running?
Do you have some global middlewares?
Do use eslint plugin(https://tanstack.com/router/latest/docs/eslint/eslint-plugin-router)?
What is result of running tsc --noEmit ?
@strong prairie also the path "/_app/_start" seems weird to me, because I guess it is the index page of your app? Did you try that on regular route first like src/routes/index.tsx just to test?
@tropic plinth The dev server is running.
I don't have any global middlewares.
I'm not using esling, I'm using biome.
tsc --noEmit doesn't return anything which means I don't have typescript errors
I also tested it with a normal route without pathless layouts placed directly under /src/routes
then you need to manually ensure the prop ordering: https://tanstack.com/router/latest/docs/eslint/create-route-property-order
And maybe check this example: https://github.com/TanStack/router/tree/main/examples/react/basic-default-search-params if it works for you
i am having the exact same problem