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

news/2024/7/20 2:04:08 标签: electron, 小程序

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


http://www.niftyadmin.cn/n/1463116.html

相关文章

异常-JAVA

在Java中,将程序执行过程中发生的不正常行为称为异常 System.out.println(10 / 0); // 执行结果 Exception in thread "main" java.lang.ArithmeticException: / by zero int[] arr {1, 2, 3}; System.out.println(arr[100]); // 执行结果 Exception…

[git] 解决github文件夹有向右的白色箭头并且不能打开的解决办法

reason 箭头可能意味着这是一个子模块 solution1 删除子文件夹里面的.git文件 执行git rm --cached [文件夹名] 执行git add . 执行git commit -m “commit messge” 执行git push origin [branch_name] solution2 如果文件夹是空的,可能是历史原因造成的。 可…

Iterable、Collection、List 的常见方法签名以及含义

1.Iterable 集合框架最顶端的接口&#xff0c;实现接口的遍历。迭代器接口 public interface Iterable<T> {Iterator<T> iterator();default void forEach(Consumer<? super T> action) {Objects.requireNonNull(action);for (T t : this) {action.accept(…

你知道Arraylist的底层是怎样是实现的吗

ArrayList常见操作 ArrayList的遍历 ArrayList 可以使用三方方式遍历&#xff1a;for循环下标、foreach、使用迭代器 public static void main(String[] args) { List<Integer> list new ArrayList<>(); list.add(1); list.add(2); list.add(3); list.add(4);…

[nginx] [emerg] bind() to 0.0.0:80 failed (10013: an attempt was made to acces a socket in a way for

environment windows operation start nginx.exe 打开 127.0.0.1 error [emerg] bind() to 0.0.0:80 failed (10013: an attempt was made to acces a socket in a way forbidden by its acces permission) solution 默认80端口启动之后&#xff0c;访问 127.0.0.1 页面…

习题练习20220406

1、栈的压入、弹出序列 给出一个入栈序列pushV和出栈序列popV, 判断出栈序列是否满足条件 直接模拟即可。因为弹出之前的值都会先入栈&#xff0c;所以这里用个栈来辅助。 初始化&#xff1a;用指针i指向pushV的第一个位置&#xff0c; 指针j指向popV的第一个位置如果pushV[…

[nginx] [emerg] invalid parameter “https//payapp.weixin.qq.com“ in xxx.conf

goal Nginx配置添加header头"X-Frame-Options" 配置: 在nginx location模块下添加一行:add_header x-Frame-Options ALLOW_FROM https://payapp.weixin.qq.com; error nginx -t 提示 [emerg] invalid parameter “https//payapp.weixin.qq.com” in xxx.conf s…

[nginx] [emerg] the ‘http2‘ parameter requires ngx_http_v2_module

enviroment 系统&#xff1a;Linux 升级http2.0 修改Nginx配置: listen 443 ssl http2 default_server; nginx -t // 报错 nginx -s reload // error.log中报错 error [emerg] the ‘http2’ parameter requires ngx_http_v2_module in xxx.conf the ‘http2’ parameter r…