我最近在Aurelia应用程序中运行karma时出现以下错误:
ERROR [reporter.remap-istanbul]: { RangeError: Maximum call stack size exceeded
at Object.fs.mkdirSync (fs.js:923:18)
at sync (..\node_modules\karma-remap-istanbul\node_modules\mkdirp\index.js:71:13)
at sync (..\node_modules\karma-remap-istanbul\node_modules\mkdirp\index.js:77:24)
at sync (..\node_modules\karma-remap-istanbul\node_modules\mkdirp\index.js:78:17)
at sync (..\node_modules\karma-remap-istanbul\node_modules\mkdirp\index.js:78:17)
at sync (..\node_modules\karma-remap-istanbul\node_modules\mkdirp\index.js:78:17)
at sync (..\node_modules\karma-remap-istanbul\node_modules\mkdirp\index.js:78:17)
at sync (..\node_modules\karma-remap-istanbul\node_modules\mkdirp\index.js:78:17)
at sync (..\node_modules\karma-remap-istanbul\node_modules\mkdirp\index.js:78:17)
at sync (..\node_modules\karma-remap-istanbul\node_modules\mkdirp\index.js:78:17)
at sync (..\node_modules\karma-remap-istanbul\node_modules\mkdirp\index.js:78:17)
at sync (..\node_modules\karma-remap-istanbul\node_modules\mkdirp\index.js:78:17)
at sync (..\node_modules\karma-remap-istanbul\node_modules\mkdirp\index.js:78:17)
at sync (..\node_modules\karma-remap-istanbul\node_modules\mkdirp\index.js:78:17)
at sync (..\node_modules\karma-remap-istanbul\node_modules\mkdirp\index.js:78:17)
at sync (..\node_modules\karma-remap-istanbul\node_modules\mkdirp\index.js:78:17)
errno: -4075,
code: 'EEXIST',
syscall: 'mkdir',
path: '\\jka-test\\coverage' }
经过几天的研究,我无法解决这个错误。也许有人遇到了这个错误,并设法修复它。
感谢您的时间。
更新
问题接缝与打字稿界面文件有关,因为代码覆盖率在Aurelia应用程序中使用,它针对" appbundle.js"它将打字稿文件编译成js。出现错误是因为js中没有接口,因此Istanbul无法覆盖生成的空文件。对于这种情况,应该有一个更清晰的代码错误......