Coder Social home page Coder Social logo

Comments (7)

saghul avatar saghul commented on May 29, 2024 1

We haven't really tested Expo.

@Calinteodor can you pl take a look when you can? We should likely add an Expo example...

from jitsi-meet.

saghul avatar saghul commented on May 29, 2024 1

Good to know!

from jitsi-meet.

saghul avatar saghul commented on May 29, 2024

Can you try using JSC instead of Hermes?

from jitsi-meet.

dancosta-fed avatar dancosta-fed commented on May 29, 2024

Can you try using JSC instead of Hermes?

Thanks for replying. I've never had to switch Hermes to JSC. So, i'll show what I did....

I've applied this changes to my Podfile:

 pod 'React-jsi', :path => "../node_modules/react-native/ReactCommon/jsi"

  use_react_native!(
    :path => config[:reactNativePath],
     :hermes_enabled => false, # disabled Hermes
    :fabric_enabled => flags[:fabric_enabled],
    :app_path => "#{Pod::Config.instance.installation_root}/..",
  )

also

 "expo": {
      "jsEngine": "jsc",
  }

for android, I've added jsc-android to my dev dependencies.

After all those changes, I figured, I wasn't using hermes anymore. However, I still get the same error.

TypeError: Super expression must either be null or a function, js engine: hermes and
TypeError: Cannot read property 'JitsiMeeting' of undefined

from jitsi-meet.

saghul avatar saghul commented on May 29, 2024

It still says the engine is Hermes though.

from jitsi-meet.

dancosta-fed avatar dancosta-fed commented on May 29, 2024

It still says the engine is Hermes though.

Sorry about that! I've actually only sent it wrong. The error is the same still, only it won't show hermes... see it below:

 ERROR  TypeError: Super expression must either be null or a function
Prontuario@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:573315:90
RCTSafeAreaView
ScreenWrapper@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:179919:24
StaticContainer@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:178424:17
EnsureSingleNavigator@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:174225:24
SceneView@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:178329:22
RCTView
View@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:65383:43
RCTView
View@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:65383:43
RCTView
View@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:65383:43
CardSheet@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:546264:23
RCTView
View@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:65383:43
@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:82018:62
PanGestureHandler@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:134610:38
PanGestureHandler@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:546347:34
RCTView
View@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:65383:43
@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:82018:62
RCTView
View@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:65383:43
Card@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:545746:36
CardContainer@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:545366:34
RNSScreen
@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:82018:62
Suspender@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:502319:22
Suspense
Freeze@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:502338:23
DelayedFreeze@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:501862:22
InnerScreen@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:501910:36
Screen@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:502186:36
MaybeScreen@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:546399:24
RNSScreenContainer
ScreenContainer@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:502042:31
MaybeScreenContainer@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:546389:23
RCTView
View@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:65383:43
Background@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:543760:21
CardStack@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:544947:36
RNCSafeAreaProvider
SafeAreaProvider@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:385346:24
SafeAreaProviderCompat@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:544733:25
RCTView
View@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:65383:43
GestureHandlerRootView
StackView@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:542814:36
PreventRemoveProvider@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:177288:25
NavigationContent@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:178115:22
@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:178131:27
StackNavigator@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:542708:18
AppRoutes
EnsureSingleNavigator@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:174225:24
BaseNavigationContainer@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:173824:28
ThemeProvider@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:179346:21
NavigationContainerInner@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:179234:26
Routes@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:173175:80
RCTView
View@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:65383:43
AuthProvider@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:168889:24
App@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:133948:41
withDevTools(App)@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:133567:27
RCTView
View@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:65383:43
RCTView
View@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:65383:43
AppContainer@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:65225:36
main(RootComponent)@http://192.168.1.102:8081/node_modules/expo/AppEntry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.routerRoot=app:116834:28

I do believe it's something to do with metro.config.js...
the one I'm using right now is:

const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');

const defaultConfig = getDefaultConfig(__dirname);

const {
 resolver: { sourceExts, assetExts },
} = getDefaultConfig(__dirname);

const config = {
 transformer: {
	 getTransformOptions: async () => ({
		 transform: {
			 experimentalImportSupport: false,
			 inlineRequires: true,
		 },
	 }),
	 babelTransformerPath: require.resolve('react-native-svg-transformer'),
 },
 resolver: {
	 assetExts: assetExts.filter(ext => ext !== 'svg'),
	 sourceExts: [...sourceExts, 'svg'],
 },
};

module.exports = mergeConfig(defaultConfig, config);

but because it's expo, I could also use:

 const { getDefaultConfig } = require('expo/metro-config');
 const { mergeConfig } = require('metro-config');

 const defaultConfig = getDefaultConfig(__dirname);

 const {
   resolver: { sourceExts, assetExts },
 } = getDefaultConfig(__dirname);

 const config = {
   transformer: {
     getTransformOptions: async () => ({
       transform: {
         experimentalImportSupport: false,
         inlineRequires: true,
       },
     }),
     babelTransformerPath: require.resolve('react-native-svg-transformer'),
   },
   resolver: {
     assetExts: assetExts.filter(ext => ext !== 'svg'),
     sourceExts: [...sourceExts, 'svg'],
   },
 };

 module.exports = mergeConfig(defaultConfig, config);

both ways would get my app running. But either way, I'd get the same error when opening jitsi

from jitsi-meet.

dancosta-fed avatar dancosta-fed commented on May 29, 2024

@saghul I believe I have found the issue.

I was working with

EXPO 50.0.7
React native: 0.73.2

I downloaded Jitsi's example and it was working fine. That was when I realized you are using "react-native": "0.72.3".

So i've done two tests here.

1- I've downgraded my Expo and React Native.

EXPO 49.0.15
React native: 0.72.10

And now Jitsi is working fine.

2- I've updated the react native version on the example app to the latest and it didn't work.

So, I believe is something to do with the newest React Native version.

But anyways, I could make it work here, which is what I needed. Thank you so much for your help!

from jitsi-meet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.