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

Error: import undefined.AmplitudeReactNativePackage; #169

Closed
andrew-skrypnyk opened this issue Aug 15, 2023 · 1 comment
Closed

Error: import undefined.AmplitudeReactNativePackage; #169

andrew-skrypnyk opened this issue Aug 15, 2023 · 1 comment

Comments

@andrew-skrypnyk
Copy link

andrew-skrypnyk commented Aug 15, 2023

After installing Amplitude

npm install @amplitude/analytics-react-native
npm install @react-native-async-storage/async-storage

And building the app I got this error:

File path: com/facebook/react/PackageList.java
app/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java

// @amplitude/react-native
import undefined.AmplitudeReactNativePackage;
      new AmplitudeReactNativePackage(),
          ^
  symbol:   class AmplitudeReactNativePackage
  location: class PackageList

CleanShot 2023-08-15 at 13 08 56@2x

@justin-fiedler
Copy link
Contributor

justin-fiedler commented Aug 16, 2023

Hi @andrew-skrypnyk thanks for choosing Amplitude.

This repo is for our maintenance RN SDK. The new repo is here:
https://github.com/amplitude/Amplitude-TypeScript/tree/v1.x/packages/analytics-react-native

What version of React Native are you using? Versions of the SDK < 1.4.0 don't support the latest RN & RN CLI. Can you please updating to the latest version and see if that resolves the issue.

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

2 participants