Runtime error on redirect post-deletion
Following the From 0 to Production - The Modern React Tutorial (RSCs, Next.js, Shadui, Drizzle, TS and more) Tutorial here
https://www.youtube.com/watch?v=d5x0JCZbAJs
I have successfully made it to the delete button. When I click the delete button, I get a Runtime error and it crashes. When I add
a 5 second delay before the redirect("/"); occurs and escape the full page image view before the redirect, there is no error. In both
cases, the deletion of the image is successful. Could someone point me in the right direction towards troubleshooting this please and thank you!
Theo - t3․gg
YouTube
From 0 to Production - The Modern React Tutorial (RSCs, Next.js, Sh...
The Modern React Tutorial is FINALLY done. This one took awhile.
Shoutout to ALL the awesome sponsors who made this possible:
- Vercel
- Clerk
- Posthog
- Sentry
- Upstash
NOTES I MENTION DURING VIDEO
"Nextgram": https://github.com/vercel/nextgram/tree/main/app
"useUploadThingInputProps": https://gist.github.com/t3dotgg/0464ca78e94acce80ba04ca...
2 Replies
please send the error you're getting
Unhandled Runtime Error
Error: Not found
Call Stack
getImage
file:///C:/Users/loud1/Development/WebDev/t3gallery/.next/server/chunks/ssr/[root%20of%20the%20server]843974._.js (397:23)
async FullPageImageView
file:///C:/Users/loud1/Development/WebDev/t3gallery/.next/server/chunks/ssr/[root%20of%20the%20server]afd391._.js (532:19)