Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hot update was not successful #1337

Closed
Andytreee opened this issue Sep 10, 2019 · 3 comments · May be fixed by novalina26/anchor#1
Closed

hot update was not successful #1337

Andytreee opened this issue Sep 10, 2019 · 3 comments · May be fixed by novalina26/anchor#1

Comments

@Andytreee
Copy link

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

@theKashey
Copy link
Collaborator

That's interesting. OLD_RENDER could be removed only when render is restored, and it was not.

@Andytreee
Copy link
Author

Many thx,dude.Btw when would u release this fix?

@theKashey
Copy link
Collaborator

May be today. Usually, I am trying to have some cool-down period to think am I happy about the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants