question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Log failure when used with Karma

See original GitHub issue
ERROR [karma]: TypeError: this.__write is not a function
    at WriteStream.write (node_modules/webpackbar/dist/utils/log-update.js:89:16)
    at adapters.forEach (node_modules/karma/lib/reporters/base.js:73:16)
    at Array.forEach (<anonymous>)
    at MochaReporter.BaseReporter.write (node_modules/karma/lib/reporters/base.js:68:19)
    at MochaReporter.BaseReporter.writeCommonMsg (node_modules/karma/lib/reporters/base.js:79:16)
    at MochaReporter.BaseReporter.onBrowserLog (node_modules/karma/lib/reporters/base.js:100:12)
    at Server.<anonymous> (node_modules/karma/lib/events.js:40:26)
    at Server.emit (events.js:187:15)
    at Browser.onInfo (node_modules/karma/lib/browser.js:100:20)
    at Socket.socket.on (node_modules/karma/lib/browser.js:272:38)

It seems that your reporter is clashing with Karma’s reporter when overriding process.stdout.write. Am I doing something wrong or is this a known issue?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
apeppercommented, Jan 11, 2019

@pi0 : A college of mine also identified a possible patch to fix the problem. See https://github.com/nuxt/webpackbar/commit/d51c508ba5a268bd65561076ade9da4ad16b122f#r31895162 for more details.

1reaction
apeppercommented, Jan 11, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Karma test runner
The log includes both core karma lines and lines from plugins: use the logging prefix to determine if your issue may need to...
Read more >
Log failure when used with Karma · Issue #38 · unjs/webpackbar
It seems that your reporter is clashing with Karma's reporter when overriding process.stdout.write . Am I doing something wrong or is this a ......
Read more >
Karma Log Level Values - unit testing - Stack Overflow
Currently, our code base uses: logLevel: config.LOG_INFO,. Is there a reason to use this one instead of the others? Possible values: config.
Read more >
Karma's Progress Reporter Makes Failing Tests Unclear - GitLab
Karma's Progress Reporter Makes Failing Tests Unclear. The default reporter for karma, progress , shows one line of output for each test.
Read more >
I'm having trouble logging into Credit Karma
If you're having trouble logging into Credit Karma and you know you're using the correct email address and password, here are some ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found