question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hot updates should ignore broken builds

See original GitHub issue

If the build is broken, is there ever any reason to apply a hot update?

(Note: this issue is pretty much the same as #1105 but I understand the problem better now and there was no discussion there so let’s try formulating it again.)

I understand that NoErrorsPlugin exists to help alleviate this but it has a downside of serving the last successful bundle which can really trip up people who aren’t familiar with this gotcha who refresh, see their app “working”, don’t notice there is an error in console, and can’t figure out why none of their new code has any effect. So I would prefer to avoid NoErrorsPlugin.

If I don’t use NoErrorsPlugin then hot reloading just breaks at the first bundle error:

screen shot 2016-02-29 at 03 36 15 screen shot 2016-02-29 at 03 36 19

After fixing the error, the update is just stuck:

screen shot 2016-02-29 at 03 38 30

The main problem, as I see it, is that hot-update.json points to the hash of a broken build. Does this ever make sense? It’s not like you can cleanly apply it anyway. Can we just avoid pointing hot-update.json at broken builds?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mikeenglandcommented, Oct 14, 2016

Please can this fix get backported into Webpack v1? It looks like the commit went into v2.1.0-beta.x. Without this, Webpack dev server + the React Hot Reloader becomes quite painful to use!

1reaction
sokracommented, Jul 3, 2016

ok I tried to fix it… at least for ES6 Modules.

Read more comments on GitHub >

github_iconTop Results From Across the Web

1 MOST BROKEN Build for Patch 7.32B - Dota 2 Guide
Improve Your Game with DOTAPLUS for free:▻ https://www.influencerlink.org/SHDxj^ Drafting Stats and Tips ^JOIN GAMELEAP AT 50% OFF▻ ...
Read more >
Cyberpunk 2077: The Best and Most Broken Character Builds
Granted, this build does require you to essentially ignore large parts of the game, but the results are worth it. Weapons/Key Items. Guts ......
Read more >
warning: ignoring broken ref refs/remotes/origin/HEAD
I encountered this recently when someone on my team deleted our old development branch from the remote. I ran this command to check...
Read more >
Edit running code with Hot Reload - JetBrains Rider
Hot Reload, also known as Edit & Continue. Learn how to make changes while running and debugging without restarting the session.
Read more >
How to prevent updating of a specific package? - Ask Ubuntu
With dselect, enter the [S]elect screen, find the package you wish to hold in its present state and press = or H ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found