[electron] winston Uncaught TypeError: self._addDefaultMeta is not a function

 

 

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)
 
解決辦法:手動將winston的版本降低
npm install [email protected]
 
 
參考

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章