首页 > 解决方案 > Bigbluebutton 开发 html5 客户端未启动

问题描述

我已按照官方文档设置 bigbluebutton 开发环境,但 html5 客户端未启动,引发以下错误。尝试使用不同的服务器但同样的错误

     if (oldPresenter?.userId !== currentPresenterId) {
W20201227-04:07:46.391(0)? (STDERR)                      ^
W20201227-04:07:46.392(0)? (STDERR)
W20201227-04:07:46.392(0)? (STDERR) SyntaxError: Unexpected token .
W20201227-04:07:46.392(0)? (STDERR)     at createScript (vm.js:80:10)
W20201227-04:07:46.393(0)? (STDERR)     at Object.runInThisContext (vm.js:139:10)
W20201227-04:07:46.393(0)? (STDERR)     at /home/ubuntu/dev/bigbluebutton/bigbluebutton-html5/.meteor/local/build/programs/server/boot.js:393:30
W20201227-04:07:46.393(0)? (STDERR)     at Array.forEach (<anonymous>)
W20201227-04:07:46.394(0)? (STDERR)     at /home/ubuntu/dev/bigbluebutton/bigbluebutton-html5/.meteor/local/build/programs/server/boot.js:220:19
W20201227-04:07:46.394(0)? (STDERR)     at /home/ubuntu/dev/bigbluebutton/bigbluebutton-html5/.meteor/local/build/programs/server/boot.js:471:5
W20201227-04:07:46.394(0)? (STDERR)     at Function.run (/home/ubuntu/dev/bigbluebutton/bigbluebutton-html5/.meteor/local/build/programs/server/profile.js:510:12)
W20201227-04:07:46.395(0)? (STDERR)     at /home/ubuntu/dev/bigbluebutton/bigbluebutton-html5/.meteor/local/build/programs/server/boot.js:470:11

我没有更改任何文件。

nodejs版本v8.17.0

标签: npmmeteorbigbluebutton

解决方案


节点 8 不支持该x?.y语法。你需要使用老派:

     if (oldPresenter && oldPresenter.userId !== currentPresenterId) {

或者你的逻辑应该是什么。


推荐阅读