I have some error that are caught by my app and call an onError function. I have the message and the stack trace inside this function. I can call reportBuildError but this doesn't use the stack trace at all.
I would like to have reportRuntimeError exposed so i can display the stack trace as well or the ability to include a stacktrace in the build error
I'm currently implementing react-error-overlay in Next.js and this would be a nice addition as currently, we have to throw an unhandled rejection which will end up in the error message (Unhandled Rejection (Error):). I already decoupled the handling logic on our side to swap the current method with this newly exposed reportRuntimeError if it gets accepted.
@timneutkens merged!
Thanks @hipstersmoothie, if you want you can implement the reporting in Next.js 馃挴
Most helpful comment
I'm currently implementing react-error-overlay in Next.js and this would be a nice addition as currently, we have to throw an unhandled rejection which will end up in the error message (
Unhandled Rejection (Error):). I already decoupled the handling logic on our side to swap the current method with this newly exposedreportRuntimeErrorif it gets accepted.