Open bennycode opened 6 years ago
This was already proposed to be fixed in https://github.com/gotwarlost/istanbul/pull/819 https://github.com/gotwarlost/istanbul/pull/816 and https://github.com/gotwarlost/istanbul/commit/4a5e92c1261bd08ce5118d01c8a05ae54fc7458b
(None of them merged)
Appears to be a conflict with karma-coverage, which will be loaded automatically by karma if it exists under node_modules.
npm uninstall karma-coverage and removing karma-coverage from package.json fixed the issue for me.
When using the reporter of type "html", then I am getting the following error when creating a code coverage report:
Although the error above is fired, istanbul still creates a HTML report with index files. I can open them but I cannot click on links like this:
When checking for the existence of
structuredText[startLine]
, then I mitigate the error and istanbul creates a HTML report for me where I can see details of classes.I don't know if that is a proper fix because I guess we should find out why
structuredText[startLine]
is not defined but I wanted to create awareness for this problem. At least this fix creates a coverage report in HTML for me.