Next.js Discord

Discord Forum

How to resolve PPR Unhandled Promise Rejection?

Unanswered
Yacare Caiman posted this in #help-forum
Open in Discord
Yacare CaimanOP
After enabling PPR, I am seeing some errors like the following:

"errorType":"Runtime.UnhandledPromiseRejection",
"errorMessage":"Error: This page needs to bail out of prerendering at this point because it used unstable_noStore(). React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error"


Can anyone advise whether this means:
1. There's an offending try/catch somewhere in my application code that I need to find and update?
2. The usage of unstable_noStore() came from within a component that was not properly wrapped in Suspense?
3. Something else entirely?

This error is giving a status 500 and fully crashing the page (not just gracefully de-opting into dynamic rendering).

3 Replies