-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
RN 0.73.x fails to compile once Nodejs-mobile is added to project #62
Comments
Thanks for the detailed report.
This is the error, and the suggestion for the fix is implicit. You have to set Node.js to 16 (by the way, are you sure you have nodejs-mobile-react-native 18.x.x installed? Because it should be saying "18" not "16"). Xcode doesn't detect the same paths as your default terminal, so it sometimes points to the incorrect Node.js version. What I often do is run |
I think the v21 came from a different terminal session. I've had many attempts fail. The Readme states that it does not follow semver, so the version number should compile on Node v18.17? Giving that a shot again. |
Confirmed through |
I fixed it by going to |
Trying to deploy a RN app to iOS. If I build a bare-bones RN app I can get this running in a simulator without issue. The moment I add nodejs-mobile the application no longer compiles.
Versions:
NodeJS 21.2.0 (I have also tried with Node 18.17)
RN 0.73.0
nodejs-mobile 18.17.4
iOS Simulator 17.2
Intel Mac running macOS 14
Install Process
Build process:
At this point I have tried to build using the command line that is logged out during the build process.
xcodebuild -workspace MWBuild8.xcworkspace -configuration Debug -scheme MWBuild8 -destination id=30D06C55-4E5C-413B-B76D-F6FED8BCFBDE
This results in an error:
If I try to build in XCode (after loading the .xcworkspace file I receive this error. I've confirmed that yoga/config/Config.h is visible from XCode:
I have tried deleting the DerivedData, /ios/pod & pod install, /ios/build, removing the /node_modules & npm install, deleting the apps on the simulator. I have also tried downgrading RN and nodejs-mobile. Restarting the Mac, restarting Terminal.
I can compile this on Windows + Android (but that doesn't help me when I need to hit an iOS target.
Any assistance is appreciated!
react-native info
The text was updated successfully, but these errors were encountered: