Create-react-app: react-error-overlay expose report runtime error

Created on 30 Jun 2018  路  3Comments  路  Source: facebook/create-react-app

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

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 exposed reportRuntimeError if it gets accepted.

All 3 comments

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 馃挴

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ericvicenti picture ericvicenti  路  83Comments

Timer picture Timer  路  144Comments

acskck picture acskck  路  213Comments

rovansteen picture rovansteen  路  192Comments

akctba picture akctba  路  80Comments