Open cenkingunlugu opened 7 years ago
Also solves: https://github.com/gotwarlost/istanbul/issues/817
Does anyone figured why this happening? In my case, doing migration js>ts(x) and just started to seeing this error. Assuming some upstream is screwing the sourcemaps (webpack + babel (react) + typescript + karma)?
@FezVrasta yes this is not a fix, it's just a "silent" fail. I think there should be an error thrown instead that just looks better than "TypeError", which would tell you that the coverage report cannot be mapped to the source file.
In my case, this happens because I am using TypeScript and so the coverage does not really cover the source file. I'm trying to switch and use karma-typescript
with coverage
to make it work but been quite unsuccessful so far
+1 👍
Fix js error when there is no structuredText of startLine or structuredText of startLine has not text attribute.
Also fixes this issueon karma-coverage: https://github.com/karma-runner/karma-coverage/issues/167