jitsi / jitsi-meet-sdk-samples

Jitsi Meet mobile SDK examples (Android, iOS and React Native)
Apache License 2.0
284 stars 240 forks source link

Element type is invalid: expected a string ( for built-in components) or a class/function ( for composite components) but got: number #202

Closed vnphu closed 10 months ago

vnphu commented 1 year ago

React-native: Element type is invalid: expected a string ( for built-in components) or a class/function ( for composite components) but got: number

Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI

saghul commented 1 year ago

What SDK and version are you trying to run?

vnphu commented 1 year ago

What SDK and version are you trying to run?

i use "@jitsi/react-native-sdk": "^0.4.1",

saghul commented 1 year ago

Are you using expo?

vnphu commented 1 year ago

Are you using expo?

no, you see example https://github.com/vnphu/test-jitsi-react-native

vnphu commented 1 year ago

385529875_1086074419499375_4825534867658315158_n

saghul commented 1 year ago

Looks like you didn't run update_deps after updating the SDK to version 0.41.

vnphu commented 1 year ago

I ran update_deps as instructed, but it error ios error: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI android: crash app

I have tried running on many versions of react-native but it doesn't work, can you recreate the repo and test

saghul commented 1 year ago

Start from our sample app please. Does that work for you?

vnphu commented 1 year ago

it not work

saghul commented 1 year ago

You really need to be more thorough with your explanations if you want to get help. What doesn't work exactly? What Node and npm versions are you using? What exact steps did you follow?

Anfieldd commented 1 year ago

I have the same error with any SDK version. I can't reproduce it for the sample app because of another error. But in my project, the error happened after updating the node from 16.17.1 to 18.18.0

vnphu commented 1 year ago

android ok but ios error : 'new NativeEmitter()' requires a non-null argument

saghul commented 1 year ago

What RN version are you using?

vnphu commented 1 year ago

What RN version are you using?

rn version 0.68.5 Do you support this version?

vnphu commented 1 year ago

Simulator Screenshot - iPhone 14 Pro - 2023-10-19 at 14 36 28 Simulator Screenshot - iPhone 14 Pro - 2023-10-19 at 14 36 31

saghul commented 1 year ago

rn version 0.68.5 Do you support this version?

No, you need to be using RN >= 0.69.

vnphu commented 10 months ago

ez

hofa77 commented 2 months ago

385529875_1086074419499375_4825534867658315158_n

Hi

I'm having the same error ... Can you please help how did you fix this problem ?