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

like-gold
like-gold10/13/2025

TanStack Start + Prisma edge + Cloudflare Worker fails during deployment

I am trying to deploy to Cloudfare Workers but getting the following reponse when visiting the deployed site:
{"status":500,"unhandled":true,"message":"HTTPError"}
{"status":500,"unhandled":true,"message":"HTTPError"}
...
rival-black
rival-black10/13/2025

Handling CORS in server routes

Hi, I'm looking to implement server API routes so they can be called from other origins but I'm not sure how. Is there an example I can look at?...
grumpy-cyan
grumpy-cyan10/12/2025

General observations about docs: database/path aliases

Path Aliases 1. "By default, TanStack Start does not include path aliases" - not true 2. As i see, @ symbol is used in imports Databases...
vicious-gold
vicious-gold10/12/2025

Internal server error: Failed to resolve import "tanstack-start-injected-head-scripts:v"

When upgrading my tanstack start deps I get the above error. I'm trying to use tanstack start with cloudflare
optimistic-gold
optimistic-gold10/12/2025

[Multitenant] Does TanStack Start support Multitenant? Rewrite URL without changing it?

Working on multi tenant app. I would like to my subdomains "<subdomain>.domain" to render view from "domain/s/<subdomain>". I was possible to do it in Next.js. Wondering if possible also on Tan Stack Start.
like-gold
like-gold10/12/2025

RC build, Could not resolve "./submodules/sts/auth/httpAuthSchemeProvider"

Hey everyone, I am trying to migrate to the rc build but I ran in a lot of issues, and I cannot solve this one for some reason. I tried to look in the internet, github and discord but I cannot find anyone with this issue so I don't know if I am doing something wrong ? Have you guys seen this error happening when running pnpm build ?...
absent-sapphire
absent-sapphire10/11/2025

[Solved] Error: Server function info not found for src--listUsers_createServerFn_handler

Hello my fellow tanstack users! As you can read in the title I have this message whenever I visit a page that ``` Error: Server function info not found for src_lib_auth_users_fn_ts--listUsers_createServerFn_handler...
adverse-sapphire
adverse-sapphire10/11/2025

RC causing Cloudflare 499 errors with UplaodThing

Hi guys, I originally posted in Theo's discord about UT throwing 499 errors now - TL;DR I managed to track down that it was the RC for TAnstack Start that was causing the issue. Using this minimal UT example I wasn't getting the error but then I updated the deps of Router and Start to the latest and I started getting the 499 error: https://github.com/pingdotgg/uploadthing/tree/main/examples/minimal-tanstack-start ...
flat-fuchsia
flat-fuchsia10/11/2025

use SPA mode with server functions on another hostname

I’d like to use SPA mode with server functions, but those functions will be hosted on another domain. Is that possible?
ambitious-aqua
ambitious-aqua10/11/2025

Index in grouped layout does not render

See the provided route tree in the image. In that case, the index.tsx never renders. Here's my route.tsx: ```ts...
No description
metropolitan-bronze
metropolitan-bronze10/11/2025

Tanstack Start 404 /

please fix this issue on @tanstack/start@latest when I do bun build and after bun serve this error happens...
No description
metropolitan-bronze
metropolitan-bronze10/11/2025

Consider adding nonce in Tanstack/start

hello devs of tanstack. I noticed that nonce is not exists in <Scripts /> this will allow the nonce csp to deny on unsafe script ...
ambitious-aqua
ambitious-aqua10/11/2025

The sub-route's context type is inferred as undefined, which contradicts the facts.

As the title suggests, here are the reproduction steps: https://stackblitz.com/edit/github-emnv33sw?file=src%2Froutes%2F_pathless%2Froute.tsx,src%2Froutes%2F_pathless%2Fchild.tsx I'm working on a protected API route using pathless middleware. Any suggestions for a better implementation are welcome!...
dependent-tan
dependent-tan10/10/2025

Need Help Server Fn Error with Zod

How to properly serialized zod error to client with serverFn and tanstack query Project repo ```typescript // zod schema...
conscious-sapphire
conscious-sapphire10/10/2025

Module federation

Anyone use tanstack router for mfe with module federation? Can we change bundler from vite to rspack/rsbuild?
conscious-sapphire
conscious-sapphire10/10/2025

500 error from server functions when using getRequestHeaders in production with Bun

I have a separate API and am using server functions to proxy requests that need headers like so: ```ts export const getData = createServerFn().handler(async () => { return getData({...
quickest-silver
quickest-silver10/9/2025

Nitro v2 plugin causing _shell.html to not build in spa mode

Hi there, I'm having issues with SPA mode then using the Nitro plugin. When the plugin is enabled, no _shell.html file is generated, but disabling it _shell.html is generated as expected. I have put up an example repo here, the base is generated from npm create @tanstack/start@latest https://github.com/clawrence121/tss-spa-mode-not-rendering-shell ...
sensitive-blue
sensitive-blue10/9/2025

Is FOUC expected to occur any time SSR is not true?

Just wondering if this is expected or what can be done to not have the flash of unstyled content occur when ssr is set to either data-only or false Here is a very minimal reproduction with all the latest packages and using (what I assume is the most stable/recommended) nitro v2 plugin. I've also tried the same thing with the nitro v3 beta. Happening in dev mode with Vite and also when running the production server from .output...
metropolitan-bronze
metropolitan-bronze10/9/2025

Can't use "@react-pdf/renderer" client side in the RC

After updating to RC, it's no longer possible to use "@react-pdf/renderer" in the client-side; we receive this error directly when visiting the page that uses it: ``` TypeError: inherits4 is not a function at node_modules/queue/index.js (@react-pdf_renderer.js?v=c121c985:439:5)...
correct-apricot
correct-apricot10/9/2025

Statis Site Generation

I want to build my site as static htmls. I'm using prerender and the data loader fn has the staticFunctionMiddleware. and idea what's missing? ``` // vite.config.ts...