Skip to content

Runtime error overlay does not disappear when fixed with HMR #3096

Closed
@eirikurn

Description

@eirikurn

Is this a bug report?

Yes

Can you also reproduce the problem with npm 4.x?

Yes

Which terms did you search for in User Guide?

Hot module replacement. Error overlay.

Environment

  1. node -v: 8.1.4
  2. npm -v: 5.3.0
  3. yarn --version: 1.0.1
  4. npm ls react-scripts: 1.0.13

Then, specify:

  1. Operating system: macOS 10.12.6
  2. Browser and version (if relevant): Chrome 60

Steps to Reproduce

  1. Add hot module reloading by accepting hot changes in src/index.js which re-renders the React app.
  2. Add a runtime exception in some React components. (throw new Error()).
  3. Open app to see the error overlay.
  4. Fix the error in your React component.
  5. Wait for webpack to rebuild and look at the app.

Expected Behavior

The error overlay should disappear.

Actual Behavior

The error overlay stays in view. If I close the overlay, I can see the new state of the app, properly fixed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions