T
TanStack7d ago
optimistic-gold

HTTP endpoint returning HTML?

My folder structure I have is src/routes/users.ts and it looks identical to this first example: https://tanstack.com/start/latest/docs/framework/solid/server-routes when I hit the endpoint with postman, insomnia or even my front end I just get back HTML with a status of 200 and I have no idea why. I also have updated all my packages to the newest versions but I am still getting the same issue.
Server Routes | TanStack Start Solid Docs
Server routes are a powerful feature of TanStack Start that allow you to create server-side endpoints in your application and are useful for handling raw HTTP requests, form submissions, user authenti...
5 Replies
fair-rose
fair-rose7d ago
do you use tanstack start?
optimistic-gold
optimistic-goldOP7d ago
yea
fair-rose
fair-rose7d ago
can you provide a complete reproducer repo?
optimistic-gold
optimistic-goldOP6d ago
I mean just the one I am working on currently I don't have another repo that is showing the same issue. These are my current versions:
"@tanstack/react-router": "^1.131.27",
"@tanstack/react-start": "^1.131.27"
"@tanstack/react-router": "^1.131.27",
"@tanstack/react-start": "^1.131.27"
and my vite:
"vite": "^6.3.5"
"vite": "^6.3.5"
fair-rose
fair-rose6d ago
the above only works with 1.132.x

Did you find this page helpful?