您好,我正在使用Aurelia框架和webpack作为捆绑程序并使用打字稿的SPA应用程序。
我尝试使用npm中的activedirectory。在ts文件中使用var ActiveDirectory = require('activedirectory')
访问它时,在浏览器控制台中出现以下错误
Uncaught TypeError: unknown stream type "undefined"
at Logger.addStream (bunyan.js?1f1d:620)
at eval (bunyan.js?1f1d:470)
at Array.forEach (<anonymous>)
at new Logger (bunyan.js?1f1d:469)
at Function.createLogger (bunyan.js?1f1d:1618)
at Object.eval (activedirectory.js?6f3e:16)
at eval (activedirectory.js:1901)
at Object../node_modules/activedirectory/lib/activedirectory.js (app.62c3df06097be3c3399a.bundle.js:107)
at __webpack_require__ (app.62c3df06097be3c3399a.bundle.js:20)
at eval (index.js?988d:1)
at Object../node_modules/activedirectory/index.js (app.62c3df06097be3c3399a.bundle.js:96)
at __webpack_require__ (app.62c3df06097be3c3399a.bundle.js:20)
at App.login (app.ts?066e:7)
at CallScope.evaluate (aurelia-binding.js?5f98:1493)
at Listener.callSource (aurelia-binding.js?5f98:5194)
at Listener.handleEvent (aurelia-binding.js?5f98:5203)
at HTMLDocument.handleDelegatedEvent (aurelia-binding.js?5f98:3278)