TypeError: Cannot read property 'b' of undefined

Hi everyone,

This is a new error that I cannot find on the Jitsi Community.
I downloaded the latest Jitsi Meet and put it on my live server. I ran npm install and then make… it’s runs fine… when i ran npm audit fix, it gives me the following error and doesn’t let me view the main welcome page.

Does anyone know why this is happening?
Thanks!
J

Google Chrome Console Log:
(index):21 (TIME) index.html loaded: 164.375000007567
Logger.js:154 2020-03-24T00:02:06.967Z [modules/browser/BrowserCapabilities.js] : This appears to be chrome, ver: 80.0.3987.149
LocalStatsCollector.js:22 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
(anonymous) @ LocalStatsCollector.js:22
Logger.js:154 2020-03-24T00:02:07.453Z [index.web] <HTMLDocument.>: (TIME) document ready: 737.87500000617
Logger.js:154 2020-03-24T00:02:07.461Z [features/base/app] TypeError: Cannot read property ‘b’ of undefined
at Object.c (app.bundle.min.js?v=139:1)
at video (reducer.js:107)
at redux.js:366
at Array.forEach ()
at redux.js:364
at u (redux.js:429)
at Object. (reducer.js:164)
at n (bootstrap:19)
at Object. (app.bundle.min.js?v=139:24)
at n (bootstrap:19)
at Object. (app.bundle.min.js?v=139:16)
at n (bootstrap:19)
at Object. (app.bundle.min.js?v=139:1)
at n (bootstrap:19)
at Object. (app.bundle.min.js?v=139:1)
at n (bootstrap:19)
at Object. (app.bundle.min.js?v=139:1)
at n (bootstrap:19)
at Object. (app.bundle.min.js?v=139:24)
at n (bootstrap:19)
at Object. (app.bundle.min.js?v=139:29)
at n (bootstrap:19)
at Object. (app.bundle.min.js?v=139:24)
at n (bootstrap:19)
at Object. (app.bundle.min.js?v=139:68)
at n (bootstrap:19)
at Object. (AuthHandler.js:1)
at Object. (app.bundle.min.js?v=139:54)
at n (bootstrap:19)
at Object. (connection.js:1)
at Object. (app.bundle.min.js?v=139:59)
at n (bootstrap:19)
at Object. (conference.js:1)
at Object. (app.bundle.min.js?v=139:131)
at n (bootstrap:19)
at Module. (app.bundle.min.js?v=139:384)
at n (bootstrap:19)
at bootstrap:83
at app.bundle.min.js?v=139:1
a @ Logger.js:154
AbstractApp.js:118 Uncaught (in promise) TypeError: Cannot read property ‘dispatch’ of undefined
at ge._openURL (AbstractApp.js:118)
at AbstractApp.js:52

Yes, I encounter this bug also. dont know the cause is ‘npm audit fix’ or not.
I have delete node_modules and execute npm install again. the problem still exits…

@damencho Any Idea?

Same here, new install (over the last 12 hours), ubuntu 18.04 LTS, document followed: https://github.com/jitsi/jitsi-meet/blob/cdc14586de00973beefed5641bdc5614261ff0a2/doc/manual-install.md

Several issues with npm getting to make correctly but finally have no errors, however on browse experience the same as above: blank page, view source.

Any ideas.

Same here, Ubuntu 18.04 LTS, quick install. make runs but I get the same error as OP.
However, the distro from sudo apt-get -y install jitsi-meet works fine after updating config for my setup.

damencho @damencho please help

any idea? @jmerinchuk @Havid_Zheng

nothing yet. No word from the devs.

I did a diff from my custom build package.json and the default install (apt-get install jitsi-meet) package.json:

56c56
<     "js-utils": "github:jitsi/js-utils#91c5e53ca5fa42907c88d56bc78254e6e56e058d",
---
>     "js-utils": "github:jitsi/js-utils#7a2be83d17dc4a3d0fac4a742ab999478f326f2e",
59c59
<     "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#a7950f8ebb489225c2e8bf41fe65f330b3de0874",
---
>     "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#5466c9d08a2c262ebb5889e3bb0cbbe6f08dc0c3",
90c90
<     "rnnoise-wasm": "github:jitsi/rnnoise-wasm.git#db96d11f175a22ef56c7db1ba9550835b716e615",
---
>     "rnnoise-wasm": "github:jitsi/rnnoise-wasm#db96d11f175a22ef56c7db1ba9550835b716e615",
130c130
<     "webpack": "4.27.1",
---
>     "webpack": "^4.42.1"

where “>” is mine. After copying “package.json” from the default to mine, removing all the node modules (rm -rf node_modules) and running npm install to install modules based off of the copied package.json, it worked fine.

Thank you so much @wwwslinger.
There must be some issues with one of those packages.

  • Deleted node_modules.
  • nano package.json
  • These are the links I’m using and it works.
    “js-utils”: “github:jitsi/js-utils#91c5e53ca5fa42907c88d56bc78254e6e56e058d”,
    “lib-jitsi-meet”: “github:jitsi/lib-jitsi-meet#5466c9d08a2c262ebb5889e3bb0cbbe6f08dc0c3”,
    “webpack”: “4.27.1”,

In JavaScript almost everything is an object, null and undefined are exceptions. This error occurs when a property is read or a function is called on an undefined variable. Undefined means that a variable has been declared but has not been assigned a value. In JavaScript, properties and functions can only belong to objects. Since undefined is not an object type, calling a function or a property on such a variable causes the TypeError: Cannot read property of undefined.

If you are not sure a variable that will always have some value, the best practice is to check the value of variables for null or undefined before using them. To avoid getting these types of errors, you need to make sure that the variables you are trying to read do have the correct value. This can be done in various ways. You can do if checks before dealing with objects whose values are bound to change:

if (myVar !== undefined) {
    ...
}

Or

if (typeof(myVar) !== 'undefined') {
    ...
}