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 property of undefined #72

Open
sebastianteres opened this issue Apr 13, 2023 · 4 comments
Open

Cannot read property of undefined #72

sebastianteres opened this issue Apr 13, 2023 · 4 comments

Comments

@sebastianteres
Copy link

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)
@jignesh3094
Copy link

What is the solution for this error

@sebastianteres
Copy link
Author

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

@jignesh3094
Copy link

jignesh3094 commented Jan 11, 2024

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

@jignesh3094
Copy link

Working fine with karma-sonarqube-reporter
Thank you

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

2 participants