You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting the error message: TypeError: Cannot read properties of undefined (reading 'status') on a +server.js page.
Here's the code:
export const GET = ()=>{
body = await _get()
return json(body)
}
This mistake is that I've omitted async which is a noob mistake of course, but the error cannot read properties of undefined (reading 'status') doesn't really help me. Could this reflect the "function is missing async" error you normally would get?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm getting the error message:
TypeError: Cannot read properties of undefined (reading 'status')
on a+server.js
page.Here's the code:
This mistake is that I've omitted
async
which is a noob mistake of course, but the errorcannot read properties of undefined (reading 'status')
doesn't really help me. Could this reflect the "function is missingasync
" error you normally would get?Beta Was this translation helpful? Give feedback.
All reactions