Skip to content

Umi Dev运行开发环境。控制台报错有什么方式可以定位到源代码文件,而不是定位在编译文件? #12127

Closed Answered by ByYogi
ByYogi asked this question in Q&A
Discussion options

You must be logged in to vote

默认会自动映射定位到源码位置。https://umijs.org/docs/api/config#devtool
你提供的截图不是你源码的报错,是antd的编译文件的报错。

你可以尝试在代码写console.error("error")。 然后再配置文件写devtool: false, 观察这个配置false和不写false的差异

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ByYogi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant