How to resolve PPR Unhandled Promise Rejection?
Unanswered
Yacare Caiman posted this in #help-forum
Yacare CaimanOP
After enabling PPR, I am seeing some errors like the following:
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
3. Something else entirely?
This error is giving a status 500 and fully crashing the page (not just gracefully de-opting into dynamic rendering).
"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
Yacare CaimanOP
Thanks for the response. Know of any tricks to identify the call site that triggered the error?
I would comment out the component one by one and try again 😅