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

Invariant Violation: new NativeEventEmitter() requires a non-null argument #884

Open
Jussinevavuori opened this issue Nov 12, 2024 · 2 comments

Comments

@Jussinevavuori
Copy link

What react-native version are you using?

0.74.5


What react-native-pdf version are you using?

6.7.5


What platform does your issue occur on? (android/ios/both)

iOS


Describe your issue as precisely as possible :

  1. Steps to reproduce the issue or to explain in which case you get the issue
  2. Interesting logs

PDFs have stopped working in my application. Rendering the <PDF /> element crashes the application with the following error:

Steps to reproduce:

  1. In react-native, import PDF from "react-native-pdf".
  2. Render <PDF {...props} />.
ERROR  Invariant Violation: `new NativeEventEmitter()` requires a non-null argument., js engine: hermes

Join a screenshot or video of the problem on the simulator or device?

IMG_4E4B5CC9A893-1


Show us the code you are using?

Not relevant, code itself is very basic usage of react-native-pdf, almost directly from the docs.

@rajivchaulagain
Copy link

Go to ios folder then remove

Pods & Podfile.lock
run pod install
Rebuild project

@Jussinevavuori
Copy link
Author

Thank you, however this has not fixed it. Reinstalling pods and rebuilding the project did not work, neither did a completely fresh iOS rebuild after deleting the /ios folder.

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