Modern Errors

Typescript error library

Visit website ↗

Profile updated

Console’s review

· Reviewed by David Mytton

What we like

Library to provide structured errors in JS/TS. Set props on errors with typed fields. Wrap, aggregate, normalize errors. Core library provides base functionality which can be extended via plugins. Official plugins for specialist cases: CLI (colorized, pretty print, verbosity levels), HTTP (structured HTTP responses), clean stack traces, and others. Open source.

Tradeoffs

JS/TS only. Be sure to configure TS to output ES modules, not CommonJS.

Is Modern Errors a fit?

Based on Console’s review published on 2023-02-02. Summary updated .

Who it’s for

Developers using JS/TS should consider this tool for error handling

Why consider it

It provides structured errors with typed fields

Keep in mind

It is limited to JS/TS only

Console is a free weekly newsletter with short reviews of developer tools, covering strengths and tradeoffs. This review reflects Console’s assessment at publication on 2023-02-02. Features and limitations may have changed since the review date. Read our selection criteria and learn about Console.

Discover your next favorite tool

Independent devtool reviews and the latest betas, in your inbox every Thursday. Free.