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

fair-rose
fair-rose9/23/2025

tanstack RC broke some code

Below is the code ``` import { createStartHandler, defaultStreamHandler,...
fascinating-indigo
fascinating-indigo9/23/2025

process is not defined error when calling server function

Hello, I am trying to call a dummy server function inside my app context like this: ```ts import testFn from "@/test"; ......
extended-salmon
extended-salmon9/23/2025

Tailwind Minification Setup

I followed the ShadCn UI instructions to setup tailwind on my start app. When i builld im seeing the css output at about 85KB, which is huge. I think minimization isnt being done. Has anyone figured this out? I tried the tailwindcss/vite plugin but no change.
national-gold
national-gold9/23/2025

Inject context to "head" option in createRootRoute

The problem I am facing is that I want to render the meta tag with csrf token: <meta name="csrf_token" value="123" />. The token will be called via an API call in beforeLoad. I dont know how to get that data in "head" option. This is my current way of doing it but not sure this is the best approach....
fascinating-indigo
fascinating-indigo9/22/2025

Set up global logging for all error requests (pages, queries...)

Hello, how can I set up a logging library for recording all error HTTP requests in my tanstack start project? Logging react errors and js errors would be great too. I was trying to use a global middleware, but the docs are focused on server functions. I am a bit confused and AI chats hallucinate a lot, is my question dumb? 😅
eastern-cyan
eastern-cyan9/22/2025

ssr error message is hard to understand

most of these stack trace frames land in vite and the actual error seems like an artifact of compiled code. ``` Error in renderToPipeableStream: SyntaxError: Unexpected identifier '_' at new AsyncFunction (<anonymous>)...
extended-salmon
extended-salmon9/22/2025

Cronjob / Background task update

I'm about to start a side project and I'd love to use TSS but for it to make sense I'd need to also be able to run cron jobs using TSS (otherwise the path to least resistance is react-router + fastify backend). What's the status of the server atm? Is it Vinxi still? Is this supported out of the box? Is it supported by the underlying infrastructure?
xenial-black
xenial-black9/22/2025

TanStack Start SSR + Cookie Auth Issue - Need Advice

Hi! I'm facing an SSR authentication issue with TanStack Start and would love some feedback on my solution. The Problem I'm using TanStack Start with cookie-based authentication. Client-side navigation works perfectly, but SSR fails because server-side requests don't include browser cookies....
fascinating-indigo
fascinating-indigo9/21/2025

How to return a success value from middleware when server function fails

I know I had to return the result from next function but how to catch a error and return a success ?
itchy-amethyst
itchy-amethyst9/21/2025

_interopRequireWildcard$1o.default and _interopRequireDefault$2P.default

After setting up the project using the npx create-start-app@latest and set the target to "cloudflare-module", ause: TypeError: e3 is not a function occurred, and it seems like it's related to _interopRequireDefault$2P.default after changing it to _interopRequireDefault$2P this problem is gone, but another problem involving als(async local storage) happens H3Error: No HTTPEvent found in AsyncLocalStorage. Make sure you are using the function within the even nodejs_compat or nodejs_als flag is on...
flat-fuchsia
flat-fuchsia9/20/2025

Is there anyway to ensure I don't accidentally leak content from a server only file to the client?

Sveltekit has this feature https://svelte.dev/docs/kit/server-only-modules to prevent secret leaks. I am wondering if there is anything similar for start. Or is the solution to just be really careful?
genetic-orange
genetic-orange9/19/2025

Singleton websocket type instance

Hi, I want to implement MQTT, which acts as a pub/sub service through a hosted broker service. How would I achieve handlign the subscription of said service, as well as registering a listener that can interact with the functions I have defined as server side functions?
rare-sapphire
rare-sapphire9/19/2025

How send sourcemaps to sentry after nitro build ?

I already have sentry added on my app but looks like on frontend sourcemaos are sent, I think because we have 2 stage of build one for client side ( Vite ) and other for server side ( Nitro ) and after Vite build and I am using Sentry Vite Plugin, I saw that sentry sent the sourcemaps to cloud, but nothing happeing after Nitro build. Someone has some insights ?
foreign-sapphire
foreign-sapphire9/19/2025

[Solved] SEO using routerWithQueryClient()

Hi all, using Tanstack Start for a small project and wanted to know if a situation is possible Considerations: - I'm using routerWithQueryClient() in the project - I can currently go to a dynamic route page with skeleton loader and then data loads...
No description
rare-sapphire
rare-sapphire9/19/2025

Basepath Dynamic Not found

Hi, I'm using React with Vite and Tanstack Router. To make use of relative paths I added this to the Vite config base: "./". The app is served using nginx, but only renders the RootRoute component. export const Route = createFileRoute("/")({...
exotic-emerald
exotic-emerald9/19/2025

websocket integration in tanstack start

As start now has its own implementation of nitro.build, does it still support websockets? https://nitro.build/guide/websocket...
eastern-cyan
eastern-cyan9/18/2025

Better Auth Integration

I have successfully refactored the better-auth nextjs demo to tanstack start https://github.com/better-auth/better-auth/tree/canary/demo/nextjs But I have a question: ...
protestant-coral
protestant-coral9/17/2025

Github workflow deploy

Does anyone know how to make a Github workflow for deploying to Cloudflare workers? I have followed this but I don't know how to make a proper CI/CD https://tanstack.com/start/latest/docs/framework/react/hosting#cloudflare-workers...
fair-rose
fair-rose9/17/2025

Debugging a statusCode: 500 error?

How can you debug a statusCode 500 error? ``` { "error": true,...
stormy-gold
stormy-gold9/16/2025

where would I capture SIGTERM and SIGINT and close a db pool?

is there an entry point for creating and closing the connection pool? I see the docs say something about a server.ts, but when I add it to src/ i can't tell if it's being run. i don't see anything logged to the console when i add console.log