title: How to fix 'sourceMap.map.originalPositionFor is not a function'
body: <p>I have a JHipster app, when i try generate a war file by executing:</p>
  
  <p><code>mvnw -Pprod package</code></p>
  
  <p>it produces a error in command <code>yarn run webpack:test</code>:</p>
  
  <pre><code>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 (&lt;anonymous&gt;)
      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.
  </code></pre>
  
  <p>I think it may be a dependency problem, but I've tried a lot of changes and they did not work</p>