如何修复'sourceMap.map.originalPositionFor不是函数'

时间:2019-06-02 15:17:10

标签: typescript jhipster yarnpkg source-maps

当我尝试通过执行以下操作生成战争文件时,我有一个JHipster应用程序:

mvnw -Pprod package

它在命令yarn run webpack:test中产生错误:

D:\application\node_modules\source-map-support\source-map-support.js:199
    var originalPosition = sourceMap.map.originalPositionFor(position);
                                         ^

TypeError: sourceMap.map.originalPositionFor is not a function
    at mapSourcePosition (D:\application\node_modules\source-map-support\source-map-support.js:199:42)
    at wrapCallSite (D:\application\node_modules\source-map-support\source-map-support.js:343:20)
    at D:\application\node_modules\source-map-support\source-map-support.js:378:26
    at Array.map (<anonymous>)
    at Function.prepareStackTrace (D:\application\node_modules\source-map-support\source-map-support.js:377:24)
    at process.emit (D:\application\node_modules\source-map-support\source-map-support.js:431:52)
    at process._fatalException (bootstrap_node.js:375:26)
error Command failed with exit code 7.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

我认为这可能是一个依赖性问题,但是我尝试了很多更改,但这些更改均无效

0 个答案:

没有答案