# error-overlay-webpack-plugin

> Webpack plugin to automatically display an error overlay in your application.

Latest version **1.1.1** (published 2022-11-14) · MIT license · 102.6K weekly downloads

## Install

```sh
npm install error-overlay-webpack-plugin
pnpm add error-overlay-webpack-plugin
yarn add error-overlay-webpack-plugin
bun add error-overlay-webpack-plugin
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: moderate downloads; esm support; no vulnerabilities; growing popularity.

Warnings: no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2022-11-14 |
| First published | 2018-03-09 |
| Weekly downloads | 102.6K |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 23.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 875 |
| Maintainers | neoziro |
| Keywords | webpack, plugin, webpack-plugin, react, react-error-overlay, error-overlay |

## Links

- npm: https://www.npmjs.com/package/error-overlay-webpack-plugin
- Repository: https://github.com/gregberge/error-overlay-webpack-plugin
- Homepage: https://github.com/gregberge/error-overlay-webpack-plugin#readme
- Issues: https://github.com/gregberge/error-overlay-webpack-plugin/issues
- Funding: https://github.com/sponsors/gregberge
- npm.io page: https://npm.io/package/error-overlay-webpack-plugin

## Dependencies (4)

- [url](https://npm.io/package/url.md) ^0.11.0
- [sockjs-client](https://npm.io/package/sockjs-client.md) ^1.5.2
- [react-dev-utils](https://npm.io/package/react-dev-utils.md) ^12.0.0
- [react-error-overlay](https://npm.io/package/react-error-overlay.md) 6.0.9

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2022-11-14
- 1.1.0 — 2022-02-12
- 1.0.0 — 2021-08-30
- 0.4.2 — 2021-02-02
- 0.4.1 — 2019-08-28
- 0.4.0 — 2019-06-17
- 0.3.0 — 2019-05-23
- 0.2.0 — 2019-03-21
- 0.1.7 — 2019-03-14
- 0.1.6 — 2019-01-11
- 0.1.5 — 2018-05-25
- 0.1.4 — 2018-03-14
- 0.1.3 — 2018-03-11
- 0.1.2 — 2018-03-09
- 0.1.1 — 2018-03-09
- … 1 more at https://npm.io/package/error-overlay-webpack-plugin/versions

## README

# Error Overlay Webpack Plugin

![Node.js CI](https://github.com/gregberge/error-overlay-webpack-plugin/workflows/Node.js%20CI/badge.svg)

Catch errors with style 💥✨

This plugin will display an error overlay in your application. It is the same error overlay used in [create-react-app](https://github.com/facebook/create-react-app).

- 📦 Webpack 5 support
- 🥞 Elegant stack trace
- 📝 Click to open error line in editor

<img src="https://raw.githubusercontent.com/gregberge/error-overlay-webpack-plugin/master/docs/example.png" alt="Error Overlay Webpack Plugin Example">

```
npm install error-overlay-webpack-plugin --save-dev
```

## Usage

```js
// webpack.config.js
const ErrorOverlayPlugin = require('error-overlay-webpack-plugin')

module.exports = {
  entry: 'main.js',
  output: {
    path: __dirname + '/dist',
    filename: 'bundle.js',
  },
  plugins: [new ErrorOverlayPlugin()],
  devtool: 'cheap-module-source-map', // 'eval' is not supported by error-overlay-webpack-plugin
}
```

## License

MIT

---
_Source: https://npm.io/package/error-overlay-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
