Correct error: unknown stream type "undefined" in bunyan
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.
Please consider to merge @fredoumulateur 's PR since the addressed issue is blocking people who want to use this module in a React App.
Any reasons that this is not merged? I also get the same error.
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.
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