tools / stack-trace

Stack Trace Explainer

Paste a stack trace to identify the error, root frame, app frames, dependency frames, and likely cause.

TypeError

Cannot read properties of undefined (reading 'id')

A value is undefined or null before property access or method call. Check guards, API response shape, and optional fields near the first app frame.

3
Frames
2
App frames
1
Dependencies

Root application frame

getUser

/app/src/users.ts:42

Frames
getUserapp

/app/src/users.ts:42

async GETapp

/app/src/api/users/route.ts:12

<anonymous>dependency

node_modules/next/dist/server.js:10