TanStack

T

TanStack

TanStack is a community of passionate software engineers striving for high-quality, open-source software for web devs

Join

react-query-questions

solid-query-questions

table-questions

virtual-questions

router-questions

react-charts-questions

ranger-questions

vue-query-questions

svelte-query-questions

bling-questions

form-questions

angular-query-questions

start-questions

db-questions

start-showcase

router-showcase

📣-announcements

wise-white
wise-white11/2/2025

What is the best to use Tanstack Start with a node.js backend like Fastify?

Hello, what is the best to use Tanstack Start with a node.js backend like Fastify for a full-stack project? Is using a monorepo the best way to do it? Thanks.
vicious-gold
vicious-gold11/2/2025

Error: Server function info not found

In production and while hosting on Vercel none of my server functions is working I always get the error. Error: Server function info not found for effa3855b54954693c19be111f9426449e6246862d97a2ebe9cf3f0cdb71aa37. I am on the newest version 1.134.9 and also tried a bit older versions. For vercel I tried nitro 2 and 3. Local I am executing "build": "vite build", "start": "node .output/server/index.mjs",...
sensitive-blue
sensitive-blue11/2/2025

useSession can’t set value on cloudflare worker

I try to implement authentication using session on dev and build release work fine but on cloudflare use session can’t set and get value
afraid-scarlet
afraid-scarlet11/2/2025

Is it necessary to use Start with a custom server when connecting to long-running processes?

Hopefully quick question since I've been reading through conversations... I use NATS (sort of like Kafka) for server-to-server communication. In my previous Fastify app, my NATS client could connect when the Fastify Server started and would stay connected while running the server. New messages would then be consumed from an async iterator as they arrived. I believe, to do something similar while using Start, I would need to build off of this example...
deep-jade
deep-jade11/1/2025

Query params in server API route

I have this server route: ```ts export const Route = createFileRoute("/api/auth/apple/")({ server: {...
extended-salmon
extended-salmon11/1/2025

Page Erorr on trying to live query a tanstack db collection (tanstack start)

the code is a little more than to fit here so here a github gist link https://gist.github.com/Bukharee/eed62369e19baef3013caf603f3833bd but when i open tha page in the browser i get ...
exotic-emerald
exotic-emerald11/1/2025

How to fetch data at build time for static deployment on Cloudflare Workers?

I’m using TanStack Start and deploying my site to Cloudflare Workers. I want to fetch some data at build time so it becomes static in the deployed site. From what I can tell, Static Server Functions won’t work in the Cloudflare Workers environment. Is there a recommended way to fetch data during the build step and have it baked into the static output when deploying?...
automatic-azure
automatic-azure11/1/2025

Jest and Playwright for Tanstack Start.

Hello. I was searching for testing resource for Jest/Playwright on Tanstack Start but I couldn't find any appropriate resource. Even the docs doesnt have any dedicated section on Testing Tanstack Start applications. Is there any update/possibility of introducing a dedicated testing documentation/resources for Tanstack Start? Thanks
unwilling-turquoise
unwilling-turquoise11/1/2025

Type inference gap between Tanstack Start and Tanstack Query

When a TanStack Start loader redirects based on query data (like redirecting if user is null), the runtime guarantees the route will never render in that state. But TypeScript doesn’t pick that up — it still infers user as User | null in the component. ```ts...
flat-fuchsia
flat-fuchsia10/31/2025

Error using clerk

As shown in the screenshot, im trying to setup clerk in tanstack and its not working. I think theres a bug in tanstack as clerk cant find the session cookies. My start.ts: ```ts import { clerkMiddleware } from "@clerk/tanstack-react-start/server";...
No description
ratty-blush
ratty-blush10/31/2025

Dev server hot reload removes one API route

I have a very odd (and very minor) issue that I repeatedly run into. My workflow (using jj-vcs) involves me doing a lot of rebases or other changes to the git log. Very often I find that when I am running the vite dev server while performing these rebase operations, the automatic route tree generated by TanStack Start/Router (I believe - routeTree.gen.ts) will remove exactly one route from my route tree, until I restart the dev server, at which point it regenerates it back in and the file is once again unchanged. That route is consistently the one at const ApiElectricRouteImport = createFileRoute('/api/electric')()...
multiple-amethyst
multiple-amethyst10/31/2025

NPM Build failing without any changes.

Hi, I am new to start (and react). I built an app with start (using CLI to scaffold). I was setting up the project on a different machine and have started bumping into build issue while the code base has not changed. "@tanstack/react-router": "^1.131.28",...
eastern-cyan
eastern-cyan10/31/2025

Tailwind is installed even though I selected not to use tailwind with `pnpm create`

When I set up Start project with pnpm create @tanstack/start@latest and select not to use tailwind, tailwind is insalled. Prompt ```...
protestant-coral
protestant-coral10/31/2025

Server functions with state

is there a way to do something like this but have it work and have the client side call these as server functions?```ts export function createAuthServerFns(client: Client, auth: Promise<Auth>, options: TanStackAuthOptions) { const authMiddleware = createAuthMiddleware(client, auth, options); ...
conscious-sapphire
conscious-sapphire10/30/2025

Migrate from Next.js Pages to Start or Router?

Our code base is a next JS application using the Pages router. We don’t do any SSR at all. All of our pages are static pages that use react query to fetch data from the client side. I’m curious if we were to try to move to tan stack router, should we use start or router only?...
deep-jade
deep-jade10/30/2025

r2.split is not a function

I have been struggling the last handful of days updating to Tanstack RC. I have it running in local dev just fine now, but deploying to vercel I get this error when opening the app. It installs and builds fine, but now getting the following: ``` 2025-10-30T14:51:46.216Z [error] TypeError: r2.split is not a function at e3 (file:///var/task/chunks/_/index-BFAo-PI3.mjs:144633:19)...
correct-apricot
correct-apricot10/30/2025

Can't figure out why / isn't pre-rendered in SPA mode

Here's my config: ``` tanstackStart({ spa: { enabled: true,...
absent-sapphire
absent-sapphire10/30/2025

Complete TanStack template for my next Saas

Hello TanStack community! 👋 I'm planning to build a fullstack SaaS project using TanStack Start, Bun, and Cloudflare Workers. My goal is to have everything in a single monorepo including: A public commercial website with a CMS for the blog...
xenial-black
xenial-black10/30/2025

how to send queryClient's cache to the client?

so let's say i have a route like this ```tsx export const Route = createFileRoute('/user/$userId/friends')({ loader: async ({ context: { queryClient }, params }) => {...