You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Hi
I am trying to generate the HTML report for a TypeScript project. The setup is rather complex and involves tsup (esbuild) + a custom plugin to instrument each source file + Cypress + @lcov-viewer/istanbul-report
The report generates correctly but I cannot open any file details and the following error is visible in the console.
I then tried to just call nyc instrument on the final bundled file and now the report is working.
I keep this issue open if you want to check why there are NaNs floating arround but feel free to close if its because my report-data is corrupted somehow.
Describe the bug
Hi
I am trying to generate the HTML report for a TypeScript project. The setup is rather complex and involves
tsup
(esbuild
) + a custom plugin to instrument each source file + Cypress +@lcov-viewer/istanbul-report
The report generates correctly but I cannot open any file details and the following error is visible in the console.
It corresponds to this line
lcov-viewer/packages/report/src/highlight/tokenize.js
Line 130 in da1e167
I debugued this piece of code and found that the
line
variable is NaN. The iterated variablemergedInsertions
contains valid and invalid values.Here is my report-data.js, by the look of it, it contains the source code and no NaN anywhere
report-data.zip
Also the default IstanbulJS
lcov
HTML report works perfectly.Thank you for your time
The text was updated successfully, but these errors were encountered: