Ant-design-pro: Sourcemaps Are Wrong

Created on 16 Sep 2019  ·  8Comments  ·  Source: ant-design/ant-design-pro

  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

Inactive

All 8 comments

Same problem.

google waring or webpack waring?

@chenshuai2144, I don't understand your question.

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

Is Google Chrome wrong or is webpack wrong?

That's right. my english is poor.

@sorrycc cc

No problem, my Mandarin is terrible! 😂

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

use sourcemap

我也碰到了一样的问题,通过官方文档指导初始化项目,语言选择了 typesciprt。观察了下,源码与断点应该是错开了一行,

image

We are very concerned about this issue, but he has not responded for a long time. We will temporarily close it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yjz1004 picture yjz1004  ·  3Comments

Jerry-goodboy picture Jerry-goodboy  ·  3Comments

suifan picture suifan  ·  3Comments

happier2 picture happier2  ·  3Comments

lvzheng0404 picture lvzheng0404  ·  3Comments