#500 unhandled HTTP json response IN DEV MODE

6 messages · Page 1 of 1 (latest)

lunar dirge
#

I'm very new to Start, but it doesn't seem normal I'm getting this in my browser in dev mode (vite dev):

{"status":500,"unhandled":true,"message":"HTTPError"}

This happens on any runtime error, e.g. right now I'm causing this by adding this code into a component:

const person = undefined as { name: string };
console.log(person.name);

About the setup: I built it yesterday w/ pnpm create @tanstack/start@latest. Attached are screenshots of package.json and vite.config.ts

sullen rover
#

any server side logs?

lunar dirge
#

here are all the terminal logs

sullen rover
#

ok, so SSR fails

#

we could try to get the vite error display instead

lunar dirge
#

So this would happen for anyone, not just me? I’m surprised I haven’t seen more posts about this, it doesn’t seem like great DX.