lib-jitsi-meet icon indicating copy to clipboard operation
lib-jitsi-meet copied to clipboard

React native was crash app in release mode

Open vantuan88291 opened this issue 2 years ago • 3 comments

Description

I import this code like bellow:

import './native';

// Re-export JitsiMeetJS from the library lib-jitsi-meet to (the other features
// of) the project jitsi-meet.
//

import JitsiMeetJS from 'lib-jitsi-meet';
export { JitsiMeetJS as default };

Its work fine in debug mode, but when change to release mode its got crash like this:

Screen Shot 2022-09-13 at 21 30 19

I belive its come from import lib-jitsi-meet, because when i remove it work fine.

version in package.json: https://github.com/jitsi/lib-jitsi-meet/releases/download/v1498.0.0+bc3aae02/lib-jitsi-meet.tgz

"react-native-webrtc": "1.100.1"

vantuan88291 avatar Sep 13 '22 14:09 vantuan88291

Do you get any more meaningful error in the device red box?

saghul avatar Sep 13 '22 15:09 saghul

Do you get any more meaningful error in the device red box?

seem like i have found why its happened. When i run npm install, jitsi meet lib in node module so weird, its only has node_modules and dist folder, code inside dist folder so that why when change to release mode its cannot build bundle. But why?

vantuan88291 avatar Sep 13 '22 15:09 vantuan88291

That's not weird at all, since package.json points to the files inside dist

saghul avatar Sep 13 '22 17:09 saghul