karma-sonarqube-unit-reporter
karma-sonarqube-unit-reporter copied to clipboard
Cannot read property of undefined
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)
What is the solution for this error
I ended up replacing karma-sonarqube-unit-reporter with karma-sonarqube-reporter
With karma-sonarqube-unit-reporter In local it is working fine but in jenkins only creating issue
Working fine with karma-sonarqube-reporter Thank you