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

Getting errors just importing nodejs-mobile-react-native #17

Open
SvtinDoda opened this issue Mar 31, 2022 · 3 comments
Open

Getting errors just importing nodejs-mobile-react-native #17

SvtinDoda opened this issue Mar 31, 2022 · 3 comments

Comments

@SvtinDoda
Copy link

SvtinDoda commented Mar 31, 2022

If I just add import nodejs from 'nodejs-mobile-react-native'; to my code I get the errors
TypeError: Super expression must either be null or a function
Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)

Any idea what am I doing wrong?

I am using ReNative

@staltz
Copy link
Member

staltz commented Apr 1, 2022

Can you give more details? Run react-native info

@SvtinDoda
Copy link
Author

SvtinDoda commented Apr 3, 2022

Can you give more details? Run react-native info

It says unknown command
Can it be because I am running it with ReNative instead of straight react native?

@advyth
Copy link

advyth commented May 13, 2022

I am having the exact same issue.

react-native info output :

System:
    OS: Windows 10 10.0.19044
    CPU: (16) x64 AMD Ryzen 7 4800H with Radeon Graphics
    Memory: 3.20 GB / 15.37 GB
  Binaries:
    Node: 16.15.0 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 8.5.5 - C:\Program Files\nodejs\npm.CMD
    Watchman: 20220501.130507.0 - C:\ProgramData\chocolatey\bin\watchman.EXE
  SDKs:
    Android SDK: Not Found
    Windows SDK: Not Found
  IDEs:
    Android Studio: Version     2021.1.0.0 AI-211.7628.21.2111.8139111      
    Visual Studio: Not Found
  Languages:
    Java: 11.0.14.1 - C:\Program Files\ojdkbuild\java-11-openjdk-11.0.14-2\bin\javac.EXE
    Python: 3.10.4 - C:\Users\advyt\AppData\Local\Programs\Python\Python310\python.EXE
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1
    react-native: 0.63.1 => 0.63.1
    react-native-windows: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Error

TypeError: Super expression must either be null or a function
ERROR    Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)

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