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: Cannot read property 'setLibraryName' of null, js engine: hermes #96

Open
borijuyeong opened this issue Sep 23, 2021 · 15 comments

Comments

@borijuyeong
Copy link

Screen Shot 2021-09-23 at 6 09 41 PM

I am junior developer using amplitude react-native.
Ios works fine but when I try to build android, it shows this error.

Can anyone give me some help?

@yuhao900914
Copy link
Contributor

Hi @borijuyeong, which amplitude react-native versions are you using? And what's the version of your react-native?

@dongjinBaek
Copy link

I'm having similar issue, too. It happens when I call Amplitude.getInstance();

Version

  • @amplitude/react-native: 2.5.0
  • react-native: 0.63.4

Screenshot

Screenshot_1632896746

@zeeberry
Copy link

Running into the same issue!

Version

@amplitude/react-native: 2.5.0
react-native: 0.63.4

@cesarribeirobdevima
Copy link

Any of you solved this?

@zeeberry
Copy link

nope, not yet

@khanisak
Copy link

Run into same error today after installing RN amplitude package.
Re-install my app using react-native run-android after npm install @amplitude/react-native@latest solved the issue for me.

@gyl89
Copy link

gyl89 commented Feb 2, 2022

Same issue with version 2.7.0.

Any workaround?

@vasylnahuliak
Copy link

vasylnahuliak commented Feb 8, 2022

"react-native": "0.65.1",
"@amplitude/react-native": "2.7.0",

Android and iOS — no issue
(both Hermes)

@borijuyeong could you provide a piece of code where you use Amplitude?

@yuhao900914
Copy link
Contributor

I use Hermes by following this docs.

I tried with react-native 0.63.4 & 0.66.1 with "@amplitude/react-native": "2.3.2", "@amplitude/react-native": "2.5.0". However I'm not able to reproduce this issue.

Could you provide an example app in order to reproduce this issue?

@vasylnahuliak
Copy link

@borijuyeong I get this error if I forgot to install pods after installing @amplitude/react-native package. Also after that need npm run ios for building ios dependencies.

FYI: For installing pods needs in terminal run bundle exec pod install in ios folder

@minaairsupport
Copy link

the same issue is it fixed

@yuhao900914
Copy link
Contributor

Hi @minaairsupport, did you install the pods in ios folder?

@minaairsupport
Copy link

I am using Expo, should I install the pods ?

@Lucilamrossi
Copy link

Any solution? Im also using Expo and couldn't make it work

@yuhao900914
Copy link
Contributor

This amplitude-ReactNative doesn't support EXPO. However, we have a new ReactNative SDK.
It supports React Native Web, Reacts Native Android, React Native iOS, and compatibility with Expo.
It also supports custom plugins and has built-in type definitions.
Please check here. #138
I will provide a document for migration soon.
Thanks.

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

10 participants