karma-sonarqube-unit-reporter icon indicating copy to clipboard operation
karma-sonarqube-unit-reporter copied to clipboard

Cannot read property of undefined

Open sebastianteres opened this issue 1 year ago • 4 comments

This is the same issue described in #53 Some of us are still having this problem and it's not clear how to resolve.

12 04 2023 18:05:53.669:ERROR [karma-server]: UncaughtException: TypeError: Cannot read property 'children' of undefined
    at SonarQubeUnitReporter.specSuccess.specSkipped.specFailure (C:\agent\_work\7\s\node_modules\karma-sonarqube-unit-reporter\index.js:152:39)
    at SonarQubeUnitReporter.BaseReporter.onSpecComplete (C:\agent\_work\7\s\node_modules\karma\lib\reporters\base.js:107:12)
    at Server.<anonymous> (C:\agent\_work\7\s\node_modules\karma\lib\events.js:40:26)
    at Server.emit (events.js:327:22)
    at Browser.onResult (C:\agent\_work\7\s\node_modules\karma\lib\browser.js:164:20)
    at Socket.<anonymous> (C:\agent\_work\7\s\node_modules\karma\lib\browser.js:218:42)
    at Socket.emit (events.js:315:20)
    at Socket.emitUntyped (C:\agent\_work\7\s\node_modules\socket.io\dist\typed-events.js:69:22)
    at C:\agent\_work\7\s\node_modules\socket.io\dist\socket.js:466:39
    at processTicksAndRejections (internal/process/task_queues.js:75:11)

sebastianteres avatar Apr 13 '23 00:04 sebastianteres

What is the solution for this error

jignesh3094 avatar Jan 11 '24 12:01 jignesh3094

I ended up replacing karma-sonarqube-unit-reporter with karma-sonarqube-reporter

sebastianteres avatar Jan 11 '24 13:01 sebastianteres

With karma-sonarqube-unit-reporter In local it is working fine but in jenkins only creating issue

jignesh3094 avatar Jan 11 '24 14:01 jignesh3094

Working fine with karma-sonarqube-reporter Thank you

jignesh3094 avatar Jan 16 '24 10:01 jignesh3094