node-activedirectory icon indicating copy to clipboard operation
node-activedirectory copied to clipboard

Correct error: unknown stream type "undefined" in bunyan

Open fredoumulateur opened this issue 8 years ago • 4 comments

I was getting this error :

Uncaught TypeError: unknown stream type "undefined" at Logger.addStream (webpack:///./~/bunyan/lib/bunyan.js?:620:15) at eval (webpack:///./~/bunyan/lib/bunyan.js?:470:18) at Array.forEach (native) at new Logger (webpack:///./~/bunyan/lib/bunyan.js?:469:25) at Function.createLogger (webpack:///./~/bunyan/lib/bunyan.js?:1618:12) at Object.eval (webpack:///./~/activedirectory/lib/activedirectory.js?:16:18) at eval (webpack:///./~/activedirectory/lib/activedirectory.js?:1901:30)

I corrected it removing the streams element. Now it works.

fredoumulateur avatar Mar 22 '17 22:03 fredoumulateur

Please consider to merge @fredoumulateur 's PR since the addressed issue is blocking people who want to use this module in a React App.

thabok avatar Apr 25 '20 08:04 thabok

Any reasons that this is not merged? I also get the same error.

aykutkilic avatar May 21 '21 13:05 aykutkilic

Did you remove this from bunyan.js or from your wrapper? I see 53 instances of "streams", thinking it would break if I remove all of them.

gitraydiaz3000 avatar Sep 09 '21 18:09 gitraydiaz3000

Did you remove this from bunyan.js or from your wrapper? I see 53 instances of "streams", thinking it would break if I remove all of them.

Here is what was removed: https://github.com/gheeres/node-activedirectory/pull/150/commits/dd6db6c1eb17dde2a352c7d00452c6c3a49426ae

uchennaibekwe avatar Oct 12 '21 11:10 uchennaibekwe