webpack / webpack/webpack-dev-server

Overlay by thrown error at initial load is closed immediately

Open
#5,024 8 comments 0 reactions 1 assignee View on GitHub

@snitin315 is already working on this.

Since Jun 7, 2024.

Dominant language
JavaScript
Stars
7.8k
Forks
1.5k
Avg merge
5h 32m
Merged PRs (30d)
6

Description

Bug report
Actual Behavior

Overlay by thrown error at initial load is closed immediately.

https://github.com/webpack/webpack-dev-server/assets/48552260/5f8184b4-60d5-4fc3-ba2c-c1cbb715cada

With debugger mode

https://github.com/webpack/webpack-dev-server/assets/48552260/deda2386-87e2-4965-a6ef-a5a60134b527

Expected Behavior

Overlay by thrown error at initial load is not closed immediately.

How Do We Reproduce?

Just edit like below the photo to the overlay-example code. https://github.com/webpack/webpack-dev-server/blob/v4.15.1/examples/client/overlay/app.js#L49

image
Please paste the results of npx webpack-cli info here, and mention other relevant information
System:
  OS: macOS 13.4.1
  CPU: (10) arm64 Apple M1 Max
  Memory: 89.55 MB / 32.00 GB
Binaries:
  Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node
  Yarn: 3.6.4 - ~/.nvm/versions/node/v16.14.0/bin/yarn
  npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm
Browsers:
  Chrome: 120.0.6099.109
  Safari: 16.5.2
Global Packages:
  webpack-dev-server: 4.15.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.