Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React native was crash app in release mode #2110

Open
vantuan88291 opened this issue Sep 13, 2022 · 3 comments
Open

React native was crash app in release mode #2110

vantuan88291 opened this issue Sep 13, 2022 · 3 comments

Comments

@vantuan88291
Copy link

vantuan88291 commented Sep 13, 2022

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"

@saghul
Copy link
Member

saghul commented Sep 13, 2022

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

@vantuan88291
Copy link
Author

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?

@saghul
Copy link
Member

saghul commented Sep 13, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants