Next.js: Adding React-Error-Overlay

Created on 22 Jul 2017  路  6Comments  路  Source: vercel/next.js

Please consider integrating react-error-overlay which is available as an npm package. The source code in here.

Instead of trying to understand the errors hidden away in the browser console, we'd see something like this:

error_overlay

This does a much better job of explaining JS errors than browsers do which is helpful for everyone but especially beginners.

Most helpful comment

@timneutkens This probably can be closed now since Next.js 7 introduced react-error-overlay.

All 6 comments

Yes. This seems like something pretty solid.

This integration would be awesome @arunoda 馃槑

any plans to add this feature?

@cr101 it's not a priority right now. But we'll definitely add it in the future. It's awesome 馃憣

@timneutkens This probably can be closed now since Next.js 7 introduced react-error-overlay.

@antonmoiseev 馃檶

Was this page helpful?
0 / 5 - 0 ratings