error
electron使用winston记录log
控制台报错
Uncaught TypeError: self._addDefaultMeta is not a function
at DerivedLogger.(anonymous function) (/Users/xxx/node_modules/winston/lib/winston/create-logger.js:80:14)
resolution
解决办法:手动将winston的版本降低
npm install winston@3.1.0
参考
https://github.com/winstonjs/winston/issues/1591