Sourcemaps Are Wrong
See original GitHub issue- 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
- Open http://localhost:8000/ in Chromium or Chrome, then
F12
for DevTools - Set a breakpoint at
login.ts
, line 47 - Log out
- 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.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:8
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
try this config https://umijs.org/config/#devtool.
use sourcemap
@chenshuai2144, I don’t understand your question.
Edit: I think you are asking “Is Google Chrome wrong or is webpack wrong?”