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

Added baseReporterDecorator #1

Merged
merged 1 commit into from
Jan 20, 2021
Merged

Added baseReporterDecorator #1

merged 1 commit into from
Jan 20, 2021

Conversation

andreasdorfer
Copy link

Screenshot 2021-01-19 at 16 43 59

Trying to run a single test in Intellij/PHPStorm causes the Karma Server to crash with the following output:

19 01 2021 16:44:12.021:INFO [karma-server]: Karma v5.2.3 server started at http://localhost:9876/
19 01 2021 16:44:12.024:INFO [launcher]: Launching browsers ChromeHeadlessCI with concurrency unlimited
19 01 2021 16:44:12.028:INFO [launcher]: Starting browser ChromeHeadless
✔ Browser application bundle generation complete.
19 01 2021 16:44:20.402:INFO [Chrome Headless 87.0.4280.141 (Mac OS 10.15.7)]: Connected on socket gLWtLHOz03dwk78hAAAA with id 59490450
19 01 2021 16:44:20.546:WARN [karma]: Error during refresh file list. TypeError: Cannot read property 'push' of undefined
at ...../node_modules/karma/lib/reporters/multi.js:11:61
at Array.forEach (<anonymous>)
at MultiReporter.addAdapter (..../node_modules/karma/lib/reporters/multi.js:11:21)
at Server.<anonymous> (..../node_modules/karma/lib/middleware/runner.js:97:18)
at Object.onceWrapper (node:events:434:26)
at Server.emit (node:events:339:22)
at Executor.schedule (..../node_modules/karma/lib/executor.js:31:20)
at ..../node_modules/karma/lib/middleware/runner.js:42:18
19 01 2021 16:44:20.552:ERROR [karma-server]: UncaughtException:: Cannot read property 'write' of null
19 01 2021 16:44:20.558:ERROR [karma-server]: TypeError: Cannot read property 'write' of null
at ..../Library/Application Support/JetBrains/PhpStorm2020.3/plugins/js-karma/js_reporter/karma-intellij/lib/intellijReporter.js:151:12
at processTicksAndRejections (node:internal/process/task_queues:75:11)
19 01 2021 16:44:20.559:ERROR [karma-server]: UncaughtException:: Cannot read property 'write' of null
19 01 2021 16:44:20.559:ERROR [karma-server]: TypeError: Cannot read property 'write' of null
at ...../Library/Application Support/JetBrains/PhpStorm2020.3/plugins/js-karma/js_reporter/karma-intellij/lib/intellijReporter.js:151:12
at processTicksAndRejections (node:internal/process/task_queues:75:11)

Process finished with exit code 1

Adding Karma's baseReporterDecorator solves this issue.

@dmitryshindin dmitryshindin merged commit ed8d13b into dmitryshindin:master Jan 20, 2021
@dmitryshindin
Copy link
Owner

Thank you for your contribution. Package will be available on npm shortly after release

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

Successfully merging this pull request may close these issues.

2 participants