I'm developing an application with Angular.io and VideoJS
I want to insert the VideoJS repository into a lib
directory in my Angular project, to make development easier. The problem is that the Webpack of the Angular project can only compile if I remove the folder lib/videojs/node_modules
, and when I do not remove, it gives the following error:
ERROR in : RangeError: Maximum call stack size exceeded
akiry-player | at checkDiagnostics (/usr/src/app/node_modules/@ngtools/webpack/src/gather_diagnostics.js:32:28)
at Object.gatherDiagnostics (/usr/src/app/node_modules/@ngtools/webpack/src/gather_diagnostics.js:42:13)
at AngularCompilerPlugin._emit (/usr/src/app/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:735:65)
at Promise.resolve.then.then.then (/usr/src/app/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:599:54)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:118:7)
webpack: Failed to compile.
I believe the error is because the webpack tries to map the node_modules folder of the VideoJS project and thus exceeds the stack size .
Is there any way to make the webpack ignore the lib/videojs/node_modules
directory so that it does not try to map this folder?