title: Maximum call stack size exceeded in streamChunksOfSourceMap.js
body: <p>I'm using Angular 12.2.0, and when hit to start i gave the following error</p>
  <pre><code>Generating browser application bundles (phase: sealing).../Users/.../node_modules/webpack/node_modules/webpack-sources/lib/helpers/streamChunksOfSourceMap.js:21
          const lines = source.match(SPLIT_LINES_REGEX);
                               ^
  
  RangeError: Maximum call stack size exceeded
      at String.match (&lt;anonymous&gt;)
      at streamChunksOfSourceMapFull (/Users/.../node_modules/webpack/node_modules/webpack-sources/lib/helpers/streamChunksOfSourceMap.js:21:23)
      at module.exports (/Users/.../node_modules/webpack/node_modules/webpack-sources/lib/helpers/streamChunksOfSourceMap.js:389:6)
      at SourceMapSource.streamChunks (/Users/.../node_modules/webpack/node_modules/webpack-sources/lib/SourceMapSource.js:211:11)
      at module.exports (/Users/.../node_modules/webpack/node_modules/webpack-sources/lib/helpers/streamChunks.js:13:17)
      at ReplaceSource.streamChunks (/Users/.../node_modules/webpack/node_modules/webpack-sources/lib/ReplaceSource.js:176:44)
      at module.exports (/Users/.../node_modules/webpack/node_modules/webpack-sources/lib/helpers/streamChunks.js:13:17)
      at ConcatSource.streamChunks (/Users/.../node_modules/webpack/node_modules/webpack-sources/lib/ConcatSource.js:112:55)
      at module.exports (/Users/.../node_modules/webpack/node_modules/webpack-sources/lib/helpers/streamChunks.js:13:17)
      at streamAndGetSourceAndMap (/Users/.../node_modules/webpack/node_modules/webpack-sources/lib/helpers/streamAndGetSourceAndMap.js:27:53)
  
  </code></pre>
  <p>Its very strange, because this is so random. I nothing change just rebuild it again and again, and its everything working well. I stop the app, rerun, than this error appearing.</p>
  <p>I raised the maximum call stack size too, but not helped.</p>
  <p>I think its maybe a bug, because if I clean/force clean cache, and delete node modules, and reinstall it, its not working, when I do this again and again, its working, and starting this randomly error headache again.</p>
  <p>I found the problem, but I don't know why? The <code>streamChunksOfSourceMap.js</code> basically use Angular to create sourcemaps. If I set in <code>angular.json</code> the development option <code>configurations</code> <code>sourceMap</code> property to false, everything is fine. but without source map the debugging is harder.</p>
  <p>Someone faced this problem before?</p>