profile
viewpoint

Ask questionsTypeError when running meeting demo on Ubuntu

I tried running the meeting demo on an Ubuntu VM, got this result:

root@chime:~/amazon-chime-sdk-js/demos/browser# npm run start --app=meeting
...
Entrypoint main [big] = meeting-bundle.js
[0] multi ./app/meeting/meeting.ts 28 bytes {main} [built]
[../../src/activespeakerdetector/DefaultActiveSpeakerDetector.ts] /root/amazon-chime-sdk-js/src/activespeakerdetector/DefaultActiveSpeakerDetector.ts 5.84 KiB {main} [built]
[../../src/activespeakerpolicy/DefaultActiveSpeakerPolicy.ts] /root/amazon-chime-sdk-js/src/activespeakerpolicy/DefaultActiveSpeakerPolicy.ts 1.92 KiB {main} [built]
[../../src/audiomixcontroller/DefaultAudioMixController.ts] /root/amazon-chime-sdk-js/src/audiomixcontroller/DefaultAudioMixController.ts 2.08 KiB {main} [built]
[../../src/audiovideocontroller/AudioVideoControllerState.ts] /root/amazon-chime-sdk-js/src/audiovideocontroller/AudioVideoControllerState.ts 2.01 KiB {main} [built]
[../../src/audiovideocontroller/DefaultAudioVideoController.ts] /root/amazon-chime-sdk-js/src/audiovideocontroller/DefaultAudioVideoController.ts 43.1 KiB {main} [built]
[../../src/audiovideocontroller/NoOpAudioVideoController.ts] /root/amazon-chime-sdk-js/src/audiovideocontroller/NoOpAudioVideoController.ts 2.98 KiB {main} [built]
[../../src/audiovideofacade/DefaultAudioVideoFacade.ts] /root/amazon-chime-sdk-js/src/audiovideofacade/DefaultAudioVideoFacade.ts 18.9 KiB {main} [built]
[../../src/backoff/FullJitterBackoff.ts] /root/amazon-chime-sdk-js/src/backoff/FullJitterBackoff.ts 1.43 KiB {main} [built]
[../../src/backoff/FullJitterBackoffFactory.ts] /root/amazon-chime-sdk-js/src/backoff/FullJitterBackoffFactory.ts 1.04 KiB {main} [built]
[../../src/backoff/FullJitterLimitedBackoff.ts] /root/amazon-chime-sdk-js/src/backoff/FullJitterLimitedBackoff.ts 1.57 KiB {main} [built]
[../../src/index.ts] /root/amazon-chime-sdk-js/src/index.ts 27.8 KiB {main} [built]
[./app/meeting/meeting.ts] 79.4 KiB {main} [built]
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {main} [built]
[./style.scss] 667 bytes {main} [built]
    + 202 hidden modules
Child html-webpack-plugin for "meeting.html":
     1 asset
    Entrypoint undefined = meeting.html
    [./node_modules/html-webpack-plugin/lib/loader.js!./app/meeting/meeting.html] 20.9 KiB {0} [built]
    [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {0} [built]
    [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built]
        + 9 hidden modules
events.js:239
    throw new TypeError('"listener" argument must be a function');
    ^

TypeError: "listener" argument must be a function
    at _addListener (events.js:239:11)
    at Server.addListener (events.js:297:10)
    at new Server (_http_server.js:269:10)
    at Object.createServer (http.js:34:10)
    at Object.<anonymous> (/root/amazon-chime-sdk-js/demos/browser/server.js:37:34)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)

Platform

  • OS: #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019
  • Amazon Chime SDK GitHub Commit: 57c600ec2a7e726a24953ab26a90ce0e93834c5b
aws/amazon-chime-sdk-js

Answer questions ijt

I was using Node 8, the default version included in Ubuntu 18. Just have to update it. Thanks.

useful!

Related questions

No questions were found.
Github User Rank List