Skip to content

Error when running npm start #8

@ericpereira-psl

Description

@ericpereira-psl

After cloning the repository and installing all required modules, I ran npm start only to be presented with the following error:

Uncaught TypeError: Cannot read property '1' of null
    at Object.<anonymous> (getstats.js:13)
    at __webpack_require__ (bootstrap 2e70af806891cc226553:678)
    at fn (bootstrap 2e70af806891cc226553:88)
    at Object.<anonymous> (index.js:8)
    at __webpack_require__ (bootstrap 2e70af806891cc226553:678)
    at fn (bootstrap 2e70af806891cc226553:88)
    at Object.<anonymous> (createlocaltracks.js:5)
    at __webpack_require__ (bootstrap 2e70af806891cc226553:678)
    at fn (bootstrap 2e70af806891cc226553:88)
    at Object.<anonymous> (connect.js:7)

Seems to be an issue in webpack:///./node_modules/@twili/webrtc/lib/getstats.js on lines 12-14:

var chromeMajorVersion = isChrome
  ? parseInt(navigator.userAgent.match(/Chrome\/([0-9]+)/)[1], 10)
  : null;

I have made sure that I am using the latest twilio and twilio-video npm modules as mentioned here:
https://support.twilio.com/hc/en-us/articles/360012782494-Breaking-Changes-in-Twilio-Video-JavaScript-SDKs-December-2018-

Any idea how to fix this as I can't proceed with any development.

If it helps, I am using Node v11.1.0 and using Google Chrome v73.0.3683.20 (Official Build) dev (64-bit) to test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions