TanStackT
TanStackโ€ข3mo agoโ€ข
2 replies
full-green

No `server` prop for `createFileRoute`

Hey everyone! I'm running into a strange issue. I have been using tanstack for about half a year now, mostly creating simple routes, but now I need to create an API route.
Everything works well except for the fact that typescript is complaining that theres no server for createFileRoute. The api works fine - I can call it and it returns the response, its just typescript that is complaining. I am clueless why. Does anyone have any idea what to check?
This is the toolkit I'm using:
pnpm@10.13.1, react@19.2, clerk auth, prisma orm plus some other, non relevant libraries

Object literal may only specify known properties, and 'server' does not exist in type 'ParamsOptions<"/api/hello", ResolveParams<"/api/hello">> & FilebaseRouteOptionsInterface<Register, RootRoute<Register, undefined, { queryClient: QueryClient; }, ... 8 more ..., undefined>, ... 12 more ..., undefined> & UpdatableRouteOptions<...>'.ts(2353)

please let me know what other information would be important to resolve the issue (I am almost certain its something obvious that I missed though ๐Ÿ˜… ).
Thanks in advance! ๐Ÿ™‡โ€โ™‚๏ธ
image.png
image.png
Was this page helpful?