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.

Source-Map is picking random files

See original GitHub issue
  • bug report

Here are my versions: Webpack: 1.12.14 Windows 7

Browsers: Fails in: Chrome: 51.0.2704.84

Works in: IE 11, Chrome 53.0.2767.0 canary (64-bit)

Language: TypeScript

Bug: When I select a file in the chrome debugger, the file that actually opens is a random file from my project.

For example, I have the following file: /src/views/configuration/configuration-vm.ts.

When I open this file in the chrome debugger, a random file is loaded from my project instead. The random file is sometimes a .ts or a .html file. (However, the CSS files seem unaffected.)

NOTE: The WEBPACK FOOTER clearly says what the file name is along with its module ID.

The odd thing is that I have not updated WebPack for over a month.

I tried this on Chrome Canary and it works fine. (Version 53.0.2767.0 canary (64-bit)) It also seems to work fine in Internet Explorer 11.

Just Chrome Stable seems to have this bug.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
egucciarcommented, Jun 16, 2016

@mmmeff The OP mentions the source map works in Chrome canary so I tried that. Maybe someone should file this as a Chrome bug instead?

1reaction
Vaccanocommented, Jun 16, 2016

@mmmeff - I do not use Babel at all. Just TypeScript to JavaScript. (And I am seeing the bug)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parcel doesn't always pickup source map file correctly #4699
Since it only happens in about 50% of cases my guess is parcel picks up the source file before the source map is...
Read more >
How to use sourcemaps to restore the original file?
Click on "Custom"; Select your *.js file; Select the corresponding *.js.map file; Browse the non-minified code on the right.
Read more >
Anatomy of source maps | Bugsnag Blog
Here's where source maps come in. Essentially a source map allows you to answer the question: Given the line/col location in this generated...
Read more >
4 Reasons Why Your Source Maps are Broken - Sentry Blog
4 Reasons Why Your Source Maps are Broken · Missing or incorrect source map directive · Missing original source files · Bad source...
Read more >
How to use source maps in AWS Lambda with Node.js
Source maps. A source map allows JavaScript to map a bundled (and often minified) JavaScript file back to its original (unbundled) source code....
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