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., js engine: hermes #1637

Closed
virat07 opened this issue Apr 25, 2024 · 3 comments

Comments

@virat07
Copy link

virat07 commented Apr 25, 2024

Summary

Version 18.2.0
Affected OS 17.0.4
OS Version 17.0.4

Current behavior

ERROR Invariant Violation: new NativeEventEmitter() requires a non-null argument., js engine: hermes
ERROR Invariant Violation: "main" has not been registered.
Screenshot 2024-04-24 at 11 01 44 PM

While making the build getting this error.
Screenshot 2024-04-24 at 11 04 33 PM

Expected behavior

Being able to use the methods in this package without errors

@mikehardy
Copy link
Collaborator

Hi there - what version of react-native are you using? Is there anything else you can think of to include that would help figure out why you are seeing this but it works for me ? (https://stackoverflow.com/help/how-to-ask / https://stackoverflow.com/help/minimal-reproducible-example)

@virat07
Copy link
Author

virat07 commented May 20, 2024

@mikehardy Thank you for your response.
{
"name": "awesomeproject",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo run:android",
"ios": "expo run:ios",
"web": "expo start --web"
},
"dependencies": {
"@react-native-masked-view/masked-view": "^0.3.1",
"@react-navigation/material-top-tabs": "^6.6.13",
"@react-navigation/native": "^6.1.17",
"@react-navigation/stack": "^6.3.29",
"expo": "^51.0.1",
"expo-status-bar": "~1.11.1",
"expo-updates": "~0.24.12",
"firebase": "^10.11.1",
"react": "18.2.0",
"react-native": "0.73.6",
"react-native-animatable": "^1.4.0",
"react-native-gesture-handler": "~2.14.0",
"react-native-get-random-values": "^1.11.0",
"react-native-pager-view": "^6.2.3",
"react-native-paper": "^5.12.3",
"react-native-safe-area-context": "4.8.2",
"react-native-screens": "~3.29.0",
"react-native-tab-view": "^3.5.2",
"react-native-webview": "13.8.6",
"react-native-youtube-iframe": "^2.3.0"
},
"devDependencies": {
"@babel/core": "^7.20.0"
},
"private": true
}
this the package json, I got that issue when I install https://www.npmjs.com/package/react-native-pdf package.

@mikehardy
Copy link
Collaborator

Sounds like you should open an issue in react-native-pdf, I don't even see our package here

Strangely I don't see react-native-pdf in your list of dependencies either, so... how did you install it, without it being in your dependencies 🤔

react-native-pdf doesn't include this package as a transitive dependency either? https://github.com/wonday/react-native-pdf/blob/master/package.json

You're not making it easy to help

I don't see any reference to this package anywhere in any of the information you've provided, so this isn't actionable, and I don't have a lot of time, certainly not to spend looking at non-actionable things

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