Props build error?
Answered
! olík posted this in #help-forum
! olíkOP
I’m trying to make a get request to a postgresql database (I’m clueless at this point)
My code: https://pastebin.com/CG2sMup5
My error:
I’ve tried everything I can think of listing it would be endless. I’m still pretty new to both frontend and backend web dev sooo yeah
My code: https://pastebin.com/CG2sMup5
My error:
Failed to compile.
src/app/api/tickets/[id]/responses/route.ts
Type error: Route "src/app/api/tickets/[id]/responses/route.ts" has an invalid "GET" export:
Type "{ params: { id: string; }; }" is not a valid type for the function's second argument.
Error: Command "npm run build" exited with 1
I’ve tried everything I can think of listing it would be endless. I’m still pretty new to both frontend and backend web dev sooo yeah
Answered by James4u (Tag me if needed)
4 Replies
@! olík You must be using v15 and there has been a breaking change
! olíkOP
Yeah I was but I didn’t see that change. I know it was a simple fix but omg I have been trying to fix this for about 4 hours now you have no idea how awesome you are, thank you soooo much!!!