New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'start' of undefined #123
Comments
Note: I get similar stacks when generating other reports, i.e. lcovonly. |
@damonsutherland Did you ever manage to get to the root of this issue? I'm experiencing the same issue. Thanks. |
Looks like the same issue as #39 |
I am also hitting the "Cannot read property 'start' of undefined" error but only when I try to combine reports from two sources. I have a
Test repository: |
It's been a year since this issue is open, and I am experiencing this issue with typescript.
|
I've found a super weird manipulation to fix the problem !
So maybe the .nyc_output file are not properly written, closed or have a problem on permission. |
Frequently users run `nyc --all` in a way that causes source files to be transpiled for actual testing but not transpiled for `--all`. This produces incompatible coverage data and inconsistantly wrong reporting. The work around here is to drop coverage produced by `--all` for any file where we have coverage produced by actual test runs. This ensures that we prefer code that was transpiled in the way which tests actually ran. Fixes #123, #224, #260, #322, #413
Frequently users run `nyc --all` in a way that causes source files to be transpiled for actual testing but not transpiled for `--all`. This produces incompatible coverage data and inconsistantly wrong reporting. The work around here is to drop coverage produced by `--all` for any file where we have coverage produced by actual test runs. This ensures that we prefer code that was transpiled in the way which tests actually ran. Fixes istanbuljs#123, istanbuljs#224, istanbuljs#260, istanbuljs#322, istanbuljs#413
The following stack is presented in the html for the covered entity:
TypeError: Cannot read property 'start' of undefined
at /home/ARBFUND/dsutherland/develop/@cw/hateoas/node_modules/istanbul-reports/lib/html/annotator.js:82:33
at Array.forEach (native)
at annotateFunctions (/home/ARBFUND/dsutherland/develop/@cw/hateoas/node_modules/istanbul-reports/lib/html/annotator.js:78:26)
at Object.annotateSourceCode (/home/ARBFUND/dsutherland/develop/@cw/hateoas/node_modules/istanbul-reports/lib/html/annotator.js:189:9)
at HtmlReport.onDetail (/home/ARBFUND/dsutherland/develop/@cw/hateoas/node_modules/istanbul-reports/lib/html/index.js:217:39)
at Visitor.(anonymous function) [as onDetail] (/home/ARBFUND/dsutherland/develop/@cw/hateoas/node_modules/istanbul-lib-report/lib/tree.js:34:30)
at ReportNode.Node.visit (/home/ARBFUND/dsutherland/develop/@cw/hateoas/node_modules/istanbul-lib-report/lib/tree.js:123:17)
at /home/ARBFUND/dsutherland/develop/@cw/hateoas/node_modules/istanbul-lib-report/lib/tree.js:116:23
at Array.forEach (native)
at visitChildren (/home/ARBFUND/dsutherland/develop/@cw/hateoas/node_modules/istanbul-lib-report/lib/tree.js:115:32)
at ReportNode.Node.visit (/home/ARBFUND/dsutherland/develop/@cw/hateoas/node_modules/istanbul-lib-report/lib/tree.js:126:5)
at Tree.visit (/home/ARBFUND/dsutherland/develop/@cw/hateoas/node_modules/istanbul-lib-report/lib/tree.js:158:20)
at /home/ARBFUND/dsutherland/develop/@cw/hateoas/node_modules/istanbul-api/lib/reporter.js:84:18
at Array.forEach (native)
at Object.write (/home/ARBFUND/dsutherland/develop/@cw/hateoas/node_modules/istanbul-api/lib/reporter.js:82:35)
at browsers.forEach.browser (/home/ARBFUND/dsutherland/develop/@cw/hateoas/node_modules/karma-coverage-istanbul-reporter/src/reporter.js:82:16)
hateoas.zip
The text was updated successfully, but these errors were encountered: