react-native run-android
. The error isFAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':nodejs-mobile-react-native:MakeToolchainarm64-v8a'.
> Process 'command '/home/manul/Android/android-ndk-r21b/build/tools/make-standalone-toolchain.sh'' finished with non-zero exit value 1
Hello everyone! I am a Java Android application developer and I decided to learn React-Native. However, I have a problem.
https://ibb.co/JcsXgCb
When I run the command nodejs.start ('main.js') in the image above, my react-native app closes (in android emu.), I cannot learn what I did wrong because the application closes without giving me any type of error output...
I would be glad if you help me!
Thank you!
Emirhan Kolver
Hello everyone! I am a Java Android application developer and I decided to learn React-Native. However, I have a problem.
https://ibb.co/JcsXgCb
When I run the command nodejs.start ('main.js') in the image above, my react-native app closes (in android emu.), I cannot learn what I did wrong because the application closes without giving me any type of error output...
I would be glad if you help me!Thank you!
Emirhan Kolver
I fixed this issue with downgrading react-native version from latest to 0.61.5, have a nice holiday!
Hello, I have been running my app successfully in node on Termux. However, with nodejs-mobile it crashes with the message
E/nodejs: os.js:63
throw new ERR_SYSTEM_ERROR(ctx);
^
SystemError [ERR_SYSTEM_ERROR]: A system error occurred: uv_interface_addresses returned Unknown system error 13 (Unknown system error 13)
at Object.networkInterfaces (os.js:205:16)
the node version on Termux is newer than the one in nodejs-mobile, so I'm not sure if the problem will disappear when node 14.4. comes to nodejs-mobile. But any suggestion on how to address this issue would be very welcome!
{"code":"MODULE_NOT_FOUND","requireStack":["/Users/peter/Library/Developer/CoreSimulator/Devices/49BDE201-BBE1-4986-9227-13B4A6AAE0AD/data/Containers/Bundle/Application/F4FF317F-BB7B-4C9B-B7BF-5C7B5390A251/Gradient.app/nodejs-project/node_modules/realm/lib/index.js","/Users/peter/Library/Developer/CoreSimulator/Devices/49BDE201-BBE1-4986-9227-13B4A6AAE0AD/data/Containers/Bundle/Application/F4FF317F-BB7B-4C9B-B7BF-5C7B5390A251/Gradient.app/nodejs-project/main.js"]}
. I checked the node_modules in the project and the device and the index.js
file is there.
Hi,
Hello, I have been running my app successfully in node on Termux. However, with nodejs-mobile it crashes with the message
E/nodejs: os.js:63 throw new ERR_SYSTEM_ERROR(ctx); ^ SystemError [ERR_SYSTEM_ERROR]: A system error occurred: uv_interface_addresses returned Unknown system error 13 (Unknown system error 13) at Object.networkInterfaces (os.js:205:16)
the node version on Termux is newer than the one in nodejs-mobile, so I'm not sure if the problem will disappear when node 14.4. comes to nodejs-mobile. But any suggestion on how to address this issue would be very welcome!
I'm facing the same Problem as @Retog a while ago. Does anybody have an idea how to solve this?
@jaimecbernardo Hi, My app just failed with the following error:
API fatal error handler returned after process out of memory
#
in a mobile environment, the solution below does not work as there are no user settable environment variables/file
export NODE_OPTIONS=--max_old_space_size=4096
Would calling node with the command line (from my MainActivity.java) work?
startNodeWithArguments(new String[]{"node","--max-old-space-size=4096", nodeDir+"/main.js"});
Hi, I'm trying to get native node modules to work with my Corova Project, but currently I'm failing badly. I see there are a few Issues for this and i opend up one myself.
Has anyone a working setup to cross compile node modules that have native code like the sqlite3 module?
Anyone had issues with bundling sqlite3? node-sqlite3 yarn add sqlite3
@semidark sounds like you are trying todo the same thing?
So the app has been working like this now for over a year. and since I updated to use the new API keys to upload to appstore connect it appears to be more restrictive in the upload?
"Invalid Bundle Structure - The binary file 'myapp.app/nodejs-project/node_modules/sqlite3/lib/binding/node_abi-platform-arch/node_sqlite3.node' is not permitted. Your app can’t contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at https://developer.apple.com/go/?id=bundle-structure for information on the iOS app bundle structure."
Yeah, trying to do a similar thing on Android but failing even to build the .node files. I think the .node files are the cross compiled binaries that nodejs-mobile library loads. I guess you cant remove them without loosing the functionality of the the node package.
I was thinking about using a wasm version of the sqlite code, so i don't need to crosscompile the c++ code. Since I don't need sqlite that badly, this was just an Idea for the future: https://www.npmjs.com/package/sqlite-wasm
bcrypto@5.4.0 install:
node-gyp rebuild`` whenever i build in xcode. please let me know if anyone knows whats going on with this.
./scripts
path and use nodejs-mobile-gyp
, which is capable of building .frameworks
: https://github.com/JaneaSystems/nodejs-mobile-react-native/blob/17fe8f26b6d253b2eec648efcf086aaae0cbc078/scripts/ios-build-native-modules.sh#L39-L43