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

amplitude-react-native depends upon React-Core, which does not define modules #54

Closed
payucads opened this issue Mar 22, 2021 · 5 comments

Comments

@payucads
Copy link

Hi,

I'm receiving this error even after doing everything from the #46.

Screenshot 2021-03-22 at 12 20 33

I've done all of these:
pod repo update && pod install pod install --repo update pod update amplitude-react-native && pod update Amplitude pod cache clean --all && pod install

When that didn't work, I deleted the Pods folder and Podfile.lock and then reinstalled them, but I'm still running into this same error.

If I try to set the use_modular_headers! in my Podfile, it breaks other packages. Do you have any idea how to fix this error?

@kelsonpw
Copy link
Contributor

Hey payucads. This is caused by the version of react native not having native swift support. I've seen this exact error and the solution does involve use_modular_headers, just needs to be turned off for certain pods.

I've laid out the solution here

Let me know if this is still causing you problems after trying what I've linked

@payucads
Copy link
Author

@kelsonpw thank you buddy! you're a lifesaver 😄

@kelsonpw
Copy link
Contributor

kelsonpw commented Mar 22, 2021

@payucads not a problem at all! It's important to me that people are able to use this library without too much effort even if they have an older RN version. Any chance you'd be willing to share what versions youre project is on?

@kelsonpw
Copy link
Contributor

cc @yuhao900914 for context

@zeulb
Copy link

zeulb commented Jun 11, 2021

@kelsonpw I'm on RN 0.63 but I'm getting the same error. I can't enable use_modular_module! globally because glog, Folly, and DoubleConversion are defined in require_relative '../node_modules/react-native/scripts/react_native_pods' now. Any idea why this is still happening on v0.63?

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

3 participants