T
TanStack2mo ago
optimistic-gold

TanStack SPA migration to TanStack Start SSR

Hey guys, we've rewritten our project from SPA React to SSR using TanStack Start, but we're running into a problem where the loader methods of the routes are executed correctly in the local dev environment, but on the cloud instance on our server (Docker), the loader methods are executed, but the result of the API calls is always empty. Does anyone have any idea how we can solve this problem?
4 Replies
like-gold
like-gold2mo ago
needs much more details what is empty? a full reproducer would be best
optimistic-gold
optimistic-goldOP2mo ago
@Luex
genetic-orange
genetic-orange2mo ago
Tanstack Start did work properly. The issue was within the Elysia JS Treaty Eden Client. The api responses did contain types not supported by tanstack serialization, in this case Response. I switched from the Treaty Eden Client to raw fetch, now it works.
like-gold
like-gold2mo ago
how come this did work in dev then? and, did you not get type errors ? cc @nikus (since you were discussing this on X)

Did you find this page helpful?