Skip to content

hot update was not successful  #1337

@Andytreee

Description

@Andytreee

If you are reporting a bug or having an issue setting up React Hot Loader, please fill in below. For feature requests, feel free to remove this template entirely.

Description

What you are reporting:
Page can be rendered successfully when first loaded, however, when rerender triggereded, an error prompts: TypeError: Cannot read property 'render' of undefined

pic1

Expected behavior

What you think should happen: I want to do code splitting with a route authorization system with webpack@4. In production mode, it works well.

Actual behavior

What actually happens: as mentioned above

Environment

React Hot Loader version: 4.12.12

Run these commands in the project folder and fill in their results:

  1. node -v: 12.9.1
  2. npm -v: 6.10.2

Then, specify:

  1. Operating system: Windows 10.0.17134.950
  2. Browser and version: Chrome 76.0.3809.132 64bit

Reproducible Demo

Please take the time to create a new project that reproduces the issue.

You can copy your project that experiences the problem and start removing things until you’re left with the minimal reproducible demo. This helps contributors, and you might get to the root of your problem during that process.

Push to GitHub and paste the link here.

https://github.com/Andytreee/authDemo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions