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

Cannot read properties of null (reading 'split') #49

Open
arobinson opened this issue Jan 5, 2023 · 1 comment
Open

Cannot read properties of null (reading 'split') #49

arobinson opened this issue Jan 5, 2023 · 1 comment

Comments

@arobinson
Copy link

My lcov.info remapping worked just fine, but when I tried to include an HTML report, I got this error (paths shortened for readability):

ERROR [reporter.remap-istanbul]: �[39mTypeError: Cannot read properties of null (reading 'split')
    at HtmlReport.writeDetailPage (.../[email protected]/node_modules/istanbul/lib/report/html.js:412:31)
    at .../[email protected]/node_modules/istanbul/lib/report/html.js:489:26

Not sure if the error is in istanbul or in this library due to some configuration with istanbul though

@arobinson
Copy link
Author

Error was in this line:

code = sourceText.split(/(?:\r?\n)|\r/),

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

1 participant