Skip to content
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

Error when trying to generate html reports. #702

Open
tomrosier opened this issue Sep 28, 2016 · 2 comments
Open

Error when trying to generate html reports. #702

tomrosier opened this issue Sep 28, 2016 · 2 comments

Comments

@tomrosier
Copy link

@tomrosier tomrosier commented Sep 28, 2016

I am trying to generate the html reports for my es6 code and receive the following error.

Cannot read property 'start' of undefined TypeError: Cannot read property 'start' of undefined at /Users/rosiet01/Documents/Subtitling/XMLParser/node_modules/nyc/node_modules/istanbul-reports/lib/html/annotator.js:50:28 at Array.forEach (native) at annotateStatements (/Users/rosiet01/Documents/Subtitling/XMLParser/node_modules/nyc/node_modules/istanbul-reports/lib/html/annotator.js:46:33) at Object.annotateSourceCode (/Users/rosiet01/Documents/Subtitling/XMLParser/node_modules/nyc/node_modules/istanbul-reports/lib/html/annotator.js:193:9) at HtmlReport.onDetail (/Users/rosiet01/Documents/Subtitling/XMLParser/node_modules/nyc/node_modules/istanbul-reports/lib/html/index.js:217:39) at Visitor.(anonymous function) [as onDetail] (/Users/rosiet01/Documents/Subtitling/XMLParser/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:34:30) at ReportNode.Node.visit (/Users/rosiet01/Documents/Subtitling/XMLParser/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:123:17) at /Users/rosiet01/Documents/Subtitling/XMLParser/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:116:23 at Array.forEach (native) at visitChildren (/Users/rosiet01/Documents/Subtitling/XMLParser/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:115:32)

@GeeWee
Copy link

@GeeWee GeeWee commented May 25, 2017

+1 - I get this when transpiling typescript and piping it to istanbul

@moribellamy
Copy link

@moribellamy moribellamy commented Nov 14, 2019

same issue. you can reproduce it with my open source app at this commit: https://github.com/moribellamy/graytabby/tree/bfd1a7bf5426e6169d95cbeed4266a5ed26bd462

npm run test:coverage gives good enough lcov data, but the HTML report has the error @tomrosier gives above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants