How to use sourcemap to locate the compressed code location

some of the project code that my colleagues did earlier was compressed with gulp, and the .map file was generated with sourcemap.
then my colleague left, and now my work mailbox has received this error log from the server:

js error Array
(

)
[msg] => Uncaught TypeError: Cannot read property "status" of undefined
[file] => https://image.qnitem.dzsofts.net/js/copy_goods.min.js?qntag=153087588220171124
[url] => https://qnitem.dzsofts.net/html/copy_goods/index.html?tap1=1
[line] => 1
[col] => 58335
[error] => TypeError: Cannot read property "status" of undefined
[trace] => TypeError: Cannot read property "status" of undefined
at https://image.qnitem.dzsofts.net/js/copy_goods.min.js?qntag=153087588220171124:1:58335
at Object.error (https://image.qnitem.dzsofts.net/js/common.min.js?qntag=151756578120171124:1:3404)
at j (https://image.qnitem.dzsofts.net/js/jquery-1.11.1.min.js?qntag=145821312120171124:2:27244)
at Object.fireWith [as rejectWith] (https://image.qnitem.dzsofts.net/js/jquery-1.11.1.min.js?qntag=145821312120171124:2:28057)
at x (https://image.qnitem.dzsofts.net/js/jquery-1.11.1.min.js?qntag=145821312120171124:4:21868)
at XMLHttpRequest.b (https://image.qnitem.dzsofts.net/js/jquery-1.11.1.min.js?qntag=145821312120171124:4:25897)

)

before, I saw that my colleague used the Node command to get a configuration file and found the exact location in the source code according to this col. However, I didn"t use this one before. Can you give me some advice on how to get this?


went to Npm to take a closer look at the document, and found that the SourceMapConsumer.with of sourcemap was used as an API.



chrome-devtools source-maps

Menu