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.

Sourcemaps Are Wrong

See original GitHub issue
  1. Create and run a new app
npm install --global create-umi
mkdir my-app
cd my-app
npm create umi # choose `ant-design-pro` and `TypeScript`
npm install
npm run start
  1. Open http://localhost:8000/ in Chromium or Chrome, then F12 for DevTools
  2. Set a breakpoint at login.ts, line 47
  3. Log out
  4. Log in to trigger the breakpoint

Notice that the debugger is off by one line. Notice also that breakpoints cannot be placed on lines 44 and 57.

broken-sourcemaps

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:8

github_iconTop GitHub Comments

2reactions
chenshuai2144commented, Sep 18, 2019

try this config https://umijs.org/config/#devtool.

use sourcemap

1reaction
robert-claypoolcommented, Sep 18, 2019

@chenshuai2144, I don’t understand your question.

Edit: I think you are asking “Is Google Chrome wrong or is webpack wrong?”

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is wrong with SOURCE MAPS and how not to mess with ...
Sourcemaps map not a range of bytes in one file to a range in another, as a naive programmer might think. They only...
Read more >
4 Reasons Why Your Source Maps are Broken - Sentry Blog
Here are four reasons why your source maps are broken and tips on how to fix them. ... Missing or incorrect source map...
Read more >
Wrong source maps · Issue #1685 · swc-project/swc - GitHub
Wrong source maps #1685 ... node --enable-source-maps swc-test.js ... It seems like source maps doesn't considering empty lines.
Read more >
Source map errors — Firefox Source Docs documentation
There are a few common ways that source maps can go wrong; they are detailed in the following sections. Source map missing or...
Read more >
reactjs - Incorrect source maps - Stack Overflow
I want to be able to dubug my code in browser with the help of source maps but for some reason im not...
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