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 reloading doesn't update Chrome sourcemaps

See original GitHub issue

We have not merged hot reloading support yet but I noticed a very unfortunate issue: Chrome doesn’t update sourcemaps.

See how the Hello in browser Sources pane doesn’t change.

Note that if we change Webpack devtool setting from cheap-module-source-map to eval it will update on hot reloads:

It used to be broken too but at some point Chrome fixed it. I remember chatting with @paulirish about it in the past.

However we can’t switch to eval mode because we need the source mapping.

We should reach out to somebody at Chrome and figure out if this is fixable. We can live with the broken behavior for a while but if it’s not possible to fix later, then hot reloading experience would be confusing.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:27 (10 by maintainers)

github_iconTop GitHub Comments

13reactions
aslushnikovcommented, Jan 22, 2018

The fix for crbug.com/438251 has landed and will be available on tomorrow’s Canary.

2reactions
Dcatflycommented, Apr 20, 2018

update chrome Version 66.0.3359.117(64-bit) , the bug has fixed. 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get Chrome to reload source maps? - Stack Overflow
Open the source map in a browser tab and do a hard reload (depending on OS, try CTRL + F5 ). This refreshes...
Read more >
Issue 438251: DevTools: Source maps and ... - Monorail
The newly created source map in dev tools for this file doesn't get reloaded. It doesn't even get requested. This is the discussion...
Read more >
Console in Chrome Devtools doesn't clear on refresh after ...
After the version 68 update a couple weeks ago, my console in Devtools no longer clears after refreshing the page. Here are the...
Read more >
Pressing Reload in a webpack + hot reloader + React ...
We used to have a bug where the new debugger didn't forcefully turn off sourcemaps on the server (bug 1303177). What this means...
Read more >
Hot Reload settings | JetBrains Rider Documentation
This option enables Hot Reload when you run code without debugging Ctrl+F5 . If it is disabled, you can make any edits, but...
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