-
-
Notifications
You must be signed in to change notification settings - Fork 10
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 [karma-server]: UncaughtException #47
Comments
Hi @mkollers, thanks for using karma-sabarivka-reporter and this detailed issue request. Could you also update me with following info, so I could reproduce the issue:
Thank you |
Hi @kopach , thanks for the fast response. The issue first appeared with the following versions:
But I also tested it with 3.1.0 of |
Hi @mkollers, I just was able to reproduce this issue. I assume you're in Please, let me know if it helped. In any case, I'll try to update |
I have seen the same issue and found that it happens if I am karma-sabarivka-reporter in more than one karma.conf.js. |
Hi @kopach, thank you for the fast reply. That should fix it! But if you could improve the During the development process, I'd like to disable code coverage and watch my code, which currently breaks because of the karma server crash. I just want to run coverage during CI Builds. Is this an understandable request, or should I think about a process where I disable |
@mkollers, yes sure. I'll do that still this week. |
Hi @albannach7, thanks for your feedback. I'll add some warning for such cases. Let's see, if after that you'll still face same issue. I'll inform you once fix is ready. |
Hi @mkollers, fix is now available in v3.1.1. From now on |
@albannach7, please update also to v3.1.1 and check if this helped for your case. If not - please create separate issue and I'll try to help. Thanks |
Works like a charm, thank's a lot for the fast resolution :) |
Everything works fine, but Karma server crashes during watch mode in an angular project. I have added a log to lib/server.js in karma and found that coverage is undefined:
TypeError: Cannot read property 'XXXX\src\app\app-routing.module.ts' of undefined at XXXX\node_modules\karma-sabarivka-reporter\src\instrumenter.ts:35:18 at Array.forEach (<anonymous>) at addFileListToCoverageData (XXXX\node_modules\karma-sabarivka-reporter\src\instrumenter.ts:32:16) at exports.sabarivkaReporter.Object.defineProperty.value.onBrowserComplete (XXXX\node_modules\karma-sabarivka-reporter\src\instrumenter.ts:16:5) at Server.<anonymous> (XXXX\node_modules\karma\lib\events.js:40:26) at Server.emit (events.js:203:15) at Browser.onComplete (XXXX\node_modules\karma\lib\browser.js:91:20) at Socket.socket.on (XXXX\frontend\node_modules\karma\lib\browser.js:208:44) at Socket.emit (events.js:203:15) at XXXX\node_modules\socket.io\lib\socket.js:528:12 at process._tickCallback (internal/process/next_tick.js:61:11)
I've got an angular project with the following karma config:
The text was updated successfully, but these errors were encountered: