React-Native-SDK icon indicating copy to clipboard operation
React-Native-SDK copied to clipboard

Object prototype may only be an Object or null

Open pmagnussen opened this issue 6 years ago • 19 comments

I keep getting this issue when running the demo app: 'Object prototype may only be an Object or null'. It's in the AgoraRtcEngineModule.js file on line 3.

I get the same error on a new react-native project. Any idea what it might be?

pmagnussen avatar Oct 12 '18 19:10 pmagnussen

device-2018-10-24-185151

Getting Error trying to add this classes in my project

PrasadModi21 avatar Oct 24 '18 13:10 PrasadModi21

I am experiencing this same issue, really need to get this implemented...

cryptixcoder avatar Nov 04 '18 00:11 cryptixcoder

I am also getting same issue . Please provide a solution to this .

ShrutiGarg019 avatar Nov 13 '18 12:11 ShrutiGarg019

Getting the same error running the demo app. Please help.

kunalqss avatar Nov 15 '18 09:11 kunalqss

same here any help about it ???

rahmamajed avatar Nov 17 '18 21:11 rahmamajed

try to run npm install in the root directory of the project

cmder avatar Nov 19 '18 06:11 cmder

tried it nothing happened
same error

rahmamajed avatar Nov 19 '18 09:11 rahmamajed

install

tried it nothing happened same error

rahmamajed avatar Nov 19 '18 09:11 rahmamajed

Have u add the Agora SDK to the specific directory and build the android project in Android Studio properly?

cmder avatar Nov 19 '18 09:11 cmder

Have u add the Agora SDK to the specific directory and build the android project in Android Studio properly?

yes i take the demo files and i run it and it give me this error.

rahmamajed avatar Nov 19 '18 09:11 rahmamajed

u mean u run the project in Android Studio ? u may not run it like that, u should run with react-native run-android

cmder avatar Nov 19 '18 09:11 cmder

u mean u run the project in Android Studio ? u may not run it like that, u should run with reactive-native run-android

i do it on react native not in the android i was talking about the demo react project when i run it it give me the same result also i try to make new project and follow all the steps on the document same error

rahmamajed avatar Nov 19 '18 10:11 rahmamajed

is issue resolved or not??

Rohan5696 avatar Dec 24 '18 08:12 Rohan5696

no still

rahmamajed avatar Dec 25 '18 13:12 rahmamajed

still the same error any solution?

sibigit avatar Jan 31 '19 13:01 sibigit

For all users who asked the question in this issue thread: Today i double checked from my side to verify if everything works fine, here's what i do.

  1. clone the repo
  2. do npm install
  3. run react-native run-android

and the program can successfully start w/o this error. I'm using android studio 3.3 + jdk 1.8

If you are doing above actions but still suffer issues. Please describe your detail step here with screenshots.

plutoless avatar Feb 01 '19 14:02 plutoless

Same issue here ...

Android : Object prototype may only be an Object or null Line : let AgoraRtcEngine = Object.create(NativeModules.AgoraRtcEngineModule);

I follow the instructions and faced it.

freddneos avatar Feb 20 '19 14:02 freddneos

Same Issue here as well.

rrscodes avatar Apr 27 '19 12:04 rrscodes

@roshansingh21 this repository has been deprecated. please use this instead https://github.com/AgoraIO-Community/Agora-RN-Quickstart

plutoless avatar Apr 27 '19 15:04 plutoless