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

TypeError: null is not an object (evaluating 'AgoraRtcChannelModule.prefix') #393

Closed
Waker777 opened this issue Jul 12, 2021 · 6 comments
Closed

Comments

@Waker777
Copy link

Waker777 commented Jul 12, 2021

When i run my app on the ios, i get the error 'TypeError: null is not an object (evaluating 'AgoraRtcChannelModule.prefix')'
Can you give me a some suggestion why this is happen?

"react": "17.0.1",
"react-native": "0.64.2",
"react-native-agora": "^3.4.2"
 iOS:14
MacOS Big Sure 11.3.1
@LichKing-2234
Copy link
Collaborator

LichKing-2234 commented Jul 12, 2021

pls try our example first.
there are some causes of your issue:

  1. You may forget to run pod install or you are opening the .project and run it by XCode after running pod install, pls open the .workspace.
  2. You may not rerun the application after you run npm install react-native-agora.
  3. You are using expo, pls refer to How can I load the native SDK's into an expo project? #188.

@Waker777
Copy link
Author

Ohh, problem was very simple, after pulling my branch i forget run 'pod install'...sorry and thx ))

@brytoz
Copy link

brytoz commented Jul 3, 2022

Having the same problem on android.
TypeError: null is not an object (evaluating 'AgoraRtcChannelModule.prefix')

I've tried expo eject, include the expo-dev-client, and installed agora-react-native-rtm but still same issue. How can i fix this @LichKing-2234 ?

@EkaanshArora
Copy link
Collaborator

@brytoz are you trying to use this on iOS? Did you run pod install after building your expo dev client?
Are you using expo run:ios or expo run:android to run the project?

@lionelbui
Copy link

Hi support?
is working with Expo?

@Coding-Algorithm
Copy link

Hy... I am experiencing this bug on my project...

I run my expo project with 'expo run:android' which made available, the android folder, I have react-native-agora, agora-rn-uikit, agora-react-native-rtm yet I am still getting this error:

TypeError: null is not an object (evaluating 'AgoraRtcChannelModule.prefix')

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

6 participants