question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom Error overlay

See original GitHub issue

create-react-app has a really neat custom error overlay. Not sure if it is usable outside of CRA - I actually don’t mind using it as-is if it’s possible, but we likely have to port it (already have a placeholder package here).

  • Reports both webpack build errors & runtime errors
  • Stack frames for runtime errors
  • Jump to source files (we already have launch-editor middleware in the dev server)

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:7
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
jkzingcommented, Mar 7, 2018

@ajomadlabs If we decide to use react-error-overlay directly, I think I almost have it done in https://github.com/jkzing/vue-cli/tree/overlay.😁 (still need polish on the code)

2reactions
jkzingcommented, Mar 6, 2018

Did a simple PoC here https://github.com/jkzing/vue-cli/tree/overlay. It seems react-error-overlay can be integrated into cli-service properly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced Features: Error Handling - Next.js
Fixing the error will automatically dismiss the overlay. ... it allows you to provide a custom fallback component and even log error information....
Read more >
Exploit React Error Boundaries to Improve UX | by Jim Medlock
Figure 6 — Custom error message from GlobalErrorBoundary.js after dismissing the error overlay. As useful as Error Boundaries are they do ...
Read more >
How to customize Webpack error overlay output message?
So I've done some reverse engineering work and found out that it's webpack-dev-server itself which is displaying it and it cannot be edited ......
Read more >
Use react-error-boundary to handle errors in React
If you run this with create-react-app's error overlay (during development), you'll get this: TypeError Cannot read property 'toUpperCase' of ...
Read more >
Java API - overlay issue (Error 314 for all custom fields)
Java API - overlay issue (Error 314 for all custom fields). I'm trying to execute some code to update the currency code properties...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found