You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run nodejs-mobile-react-native in react-native: 0.74.5 and react-native-cli: 2.0.1
but the app won't run because of this error
Cannot read properties of undefined (reading 'addListener')
and this is the package code with the error ( factory: node_modules/nodejs-mobile-react-native/index.js )
/* * Dispatcher for all channels. This event is called by the plug-in * native code to deliver events from Node. * The channelName field is the channel name. * The message field is the data. */NativeAppEventEmitter.addListener("nodejs-mobile-react-native-message",(e)=>{if(channels[e.channelName]){channels[e.channelName].processData(e.message);}else{thrownewError('Error: Channel not found:',e.channelName);}});
The text was updated successfully, but these errors were encountered:
info Fetching system and libraries information...
System:
OS: Windows 11 10.0.22631
CPU: "(12) x64 AMD Ryzen 5 3600 6-Core Processor "
Memory: 5.81 GB / 15.95 GB
Binaries:
Node:
version: 20.12.2
path: C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm:
version: 10.5.0
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
IDEs:
Android Studio: Not Found
Visual Studio: Not Found
Languages:
Java: 21.0.4
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.74.5
wanted: 0.74.5
react-native-windows: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
I'm trying to run nodejs-mobile-react-native in react-native: 0.74.5 and react-native-cli: 2.0.1
but the app won't run because of this error
Cannot read properties of undefined (reading 'addListener')
the error
this is my code
and this is the package code with the error ( factory: node_modules/nodejs-mobile-react-native/index.js )
The text was updated successfully, but these errors were encountered: