ChatGPT-wechat-bot icon indicating copy to clipboard operation
ChatGPT-wechat-bot copied to clipboard

报错timestamp ??= 0; 是为啥呀

Open MaXin-noob opened this issue 2 years ago • 4 comments

为什么我在进行 node lib/bundle.esm.js 时会报如下的错误? 无论是是在我的电脑上(Windows)还是服务器上(树莓派)都是这样

root@raspberrypi:/www/wwwroot/ChatGPT-wechat-bot# node lib/bundle.esm.js
file:///www/wwwroot/ChatGPT-wechat-bot/node_modules/wechaty-puppet-service/dist/esm/src/client/puppet-service.js:1148
        timestamp ??= 0;
                  ^^^

SyntaxError: Unexpected token '??='

MaXin-noob avatar Dec 10 '22 17:12 MaXin-noob

同样的问题

OrdinarySK avatar Dec 10 '22 17:12 OrdinarySK

lib/bundle.esm.js 我没有这个文件

Brawns avatar Dec 10 '22 18:12 Brawns

是因为nodejs版本太低

Pengchengistaken avatar Dec 10 '22 18:12 Pengchengistaken

同样的问题

是版本问题,需要将Nodejs版本升级到16.8以上

MaXin-noob avatar Dec 10 '22 18:12 MaXin-noob