Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Forest Plasencia
    @ForestP
    Hello has anyone has any luck getting ipfs running on rn 60+ ? I found some threads from a couple years back, but none addressing the error im seeing with the bcrypto: 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.
    @jaimecbernardo not sure if youre still around but would love to chat and see how you got it working
    Mike James
    @export-mike
    Right @semidark this is a bit of a problem for us then as we have been deploying this app for over a year now with sqlite bundled, with no issues and now we're starting to see invalid binary structure on upload to testflight. any ideas on how I can compile it so apple will accept it? @jaimecbernardo
    Jaime Bernardo
    @jaimecbernardo
    Hi,
    I've been a bit more absent indeed.
    I don't think I ever trying to get ipfs or bcrypto working myself.
    @export-mike , .node is a shared library, which will be detected and rejected by Apple. the method for dynamic libraries in the plugins should be trying to convert to a framework and deleting every .node when building. Not sure why you're still seeing .node files.
    Mike James
    @export-mike
    right! thanks @jaimecbernardo, so what do I need to look into converting my .node file to framework? this makes sense!
    Jaime Bernardo
    @jaimecbernardo
    The module's are supposed to add some script phases to the iOS build in order for them to run when building the iOS application. For example, the react-native plugin has this extra build phases configured here: https://github.com/JaneaSystems/nodejs-mobile-react-native/blob/17fe8f26b6d253b2eec648efcf086aaae0cbc078/react-native.config.js
    These scripts are in the plugin's ./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
    Mike James
    @export-mike
    right thanks, so its almost like this isn't being picked up in glob or something (guess at this point)
    İbrahim Can KALYA
    @IbrahimCanKALYA
    hello everyone i'm trying to use metascraper on react-native via nodejs-mobile. I'am getting error that named no suitable image found. Is there any idea that problem is. Thanks in advence
    peabody
    @peabody:matrix.org
    [m]
    We aren't using react native or cordova, how do we use native node modules without it?
    İbrahim Can KALYA
    @IbrahimCanKALYA
    i'am not using native modules directly. I wanna use metascraper & metascrapper have subdependcy that named re2. re2 is node's defaults module. re2 needs to be build for native platform because it's originally developed with c+. When i want to import metascraper it's give me an error about native module building
    I already opened an issue about it JaneaSystems/nodejs-mobile#305
    if there anyone can help me about it i will be highly appreciated
    thanks in advance @peabody:matrix.org
    edgardoagnoD53
    @edgardoagnoD53
    Hi @jaimecbernardo is there a plan in the pipeline to support secure https connection to the iOS node mobile engine?
    edgardoagnoD53
    @edgardoagnoD53

    Has anyone experienced this CORS issue when using the library?

    [Error] Fetch API cannot load http://localhost:8080/api/1/auth/login?language_code=en&franchise_id=1&company_id=1 due to access control checks.
    [Error] Failed to load resource: Preflight response is not successful (login, line 0)

    gonzalo-rivas
    @gonzalo-rivas
    Hello dudes, im using nodejs-mobile in react-native and also worker-threads, but im experiencing some issues trying to get the console.logs, the console.logs from the workers didnt show up, how could I fix this?
    Felix Schlitter
    @felixSchl
    hey, i am trying to run node with "--inspect=<ip>:<port>" flag on my iOS device but it won't work. I don't know if i should expect it to work. i add the device's ip and debugger port in chrome://inspect#devices but it doesnt pick up on it. the same set up works fine when i run node --inspect on another device
    Jonathan Green
    @b20160
    I'm trying to add this to my android app but I am using flutter and it has a MainActivity.kt instead of a java file can someone help me get this running. I have successfully got it working with ios
    Jonathan Green
    @b20160
    can anyone help me with this issue TypeError [ERR_NO_ICU]: "fatal" option is not supported on Node.js compiled without ICU
    Jaime Bernardo
    @jaimecbernardo
    nodejs-mobile is compiled without ICU: -without-intl
    Some features (such as --inspect) depend on this.
    Jonathan Green
    @b20160
    So if a npm module depends on ICU I can’t use it?
    Felix Schlitter
    @felixSchl
    is it possible to compile with ICU for dev builds? just to get --inspect to work
    Vasu Sharma
    @vasusharma7
    Can anyone help with running react native module using nodejs-mobile ? I tried running react-native background-actions module, but it throws a lot of errors
    xeoshow
    @xeoshow
    Hello,
    Could anyone please tell if pm2 could be used in the nodejs mobile context? If yes, how to do? Thanks!
    frank-dspeed
    @frank-dspeed:matrix.org
    [m]
    Not possible node-Mobile is only a lib that Gets scheduled via the nativ OS App there are Tons of Rules that apply Handys so Tend to Close Long running Apps and so on
    gonzalo-rivas
    @gonzalo-rivas
    Hello, i cant compile the android version of the react-native app, i have this error:
    • What went wrong:
      [0] Execution failed for task ':nodejs-mobile-react-native:BuildNpmModulesarm64-v8a'.
      [0] > Process 'command 'npm'' finished with non-zero exit value 1
      [0]
      [0] Try:
      [0] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
      [0]
      [0]
      Get more help at https://help.gradle.org
    I have installed all ndk, etc stuff but cant leave from this, specifically, the error is this:
    [0] npm ERR! gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
    [0] npm ERR! clang110++: warning: argument unused during compilation: '-bundle' [-Wunused-command-line-argument]
    [0] npm ERR! clang110++: warning: argument unused during compilation: '-undefined dynamic_lookup' [-Wunused-command-line-argument]
    [0] npm ERR! ld: error: undefined symbol: main
    Is the general android build steps (not the react-native ones) necessary before the react-native steps?
    shikhars371
    @shikhars371
    hi i am getting this error

    npm ERR! code ELIFECYCLE
    npm ERR! syscall spawn
    npm ERR! file sh
    npm ERR! errno ENOENT
    npm ERR! fd-lock@1.1.0 install: node-gyp-build
    npm ERR! spawn ENOENT
    npm ERR!
    npm ERR! Failed at the fd-lock@1.1.0 install script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    npm verb exit [ 1, true ]
    npm timing npm Completed in 1621ms

    npm ERR! A complete log of this run can be found in:
    npm ERR! /Users/shikharsrivastava/.npm/_logs/2021-04-02T09_04_59_140Z-debug.log

    FAILURE: Build failed with an exception.

    • What went wrong:
      Execution failed for task ':nodejs-mobile-react-native:BuildNpmModulesarmeabi-v7a'.

      Process 'command 'npm'' finished with non-zero exit value 1

    • Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    • Get more help at https://help.gradle.org

    BUILD FAILED in 31s
    Unhandled script error 1 at ./tools/backend/build-native-modules.sh:32

    at ChildProcess.exithandler (child_process.js:304:12)
    at ChildProcess.emit (events.js:196:13)
    at maybeClose (internal/child_process.js:1000:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:267:5)

    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! Gateway@0.0.1 build-backend-android: ./tools/build-backend.js --android
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the Gateway@0.0.1 build-backend-android script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR! /Users/shikharsrivastava/.npm/_logs/2021-04-02T09_05_00_029Z-debug.log
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! Gateway@0.0.1 android-dev: npm run build-backend-android && react-native run-android --variant=debug
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the Gateway@0.0.1 android-dev script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR! /Users/shikharsrivastava/.npm/_logs/2021-04-02T09_05_00_323Z-debug.log

    can someone please help me out with this
    mattt21
    @mattt21

    Hey guys,

    Does anyone have any pointers on how to bind a rust project using neon & nodejs-mobile for react native?

    I am installing my neon package to the nodejs-project library, and when I run 'npm run ios', my app is failing to launch with crate linking errors
    " = note: ld: library not found for -lSystem
    clang: error: linker command failed with exit code 1 (use -v to see invocation)"
    I followed this thread but still having these issues: janeasystems/nodejs-mobile#193
    Tomasz
    @TRtomasz
    Hi, is there any way to restart (stop and start again) node on phone? It is really missing option. I see that there is node::Stop(Evnironment *e) method but i have no idea how to get enviroment
    Ahmet Şahin
    @ahmtshn
    Hi guys
    i tried every way but i have a problem. More than one file was found with OS independent path 'lib/x86/libnode.so'. If you are using jniLibs and CMake IMPORTED targets
    "react-native": "0.63.4",
    "nodejs-mobile-react-native": "^0.6.2",
    Felix Schlitter
    @felixSchl
    hey i am having trouble with building native modules... for whatever reason i seem unable to compile for android from osx. i read through the gradle scripts and think i understand how it's all wired up. i see that you export a npm_config_node_gyp environment variable to select the node-gyp fork, but that environment variable appears to have no effect at all. I can set it to complete bogus values and it isnt bothered
    after that i tried the same when building for android on linux and indeed, npm_config_node_gyp appears to have no effect at all. i could also not see it documented anywhere.
    Felix Schlitter
    @felixSchl
    ok, so the dispatch happends in another module called "npm-lifecycle" https://github.com/npm/npm-lifecycle/blob/latest/node-gyp-bin/node-gyp
    thainquet
    @thainquet
    hey guys, anybody got this lib run on react-native 0.64?
    i created new react native project npx react-native init test
    then i ran yarn add nodejs-mobile-react-native, cd ios && pod install
    after that, i build the project inside xcode and everythings runs well, except after adding this line: import nodejs from 'nodejs-mobile-react-native';
    the apps crash and show TypeError: Super expression must either be null or a function
    furthur information was described here: JaneaSystems/nodejs-mobile#314
    mattt21
    @mattt21
    @thainquet I just commented on that issue with a fix
    thainquet
    @thainquet

    @thainquet I just commented on that issue with a fix

    @mattt21 thank you, your fix works, but im facing another error when building this lib in ios
    xcode shows me this error when im trying to build repo
    ../Desktop/nodejs-mobile-react-native-example/ios/npm ERR! clang:1:1: invalid argument '-mmacosx-version-min=10.7' not allowed with '-mios-simulator-version-min=9.0'

    could you please guild me some hints? thank you
    frankyfdr
    @frankyfdr

    Hi, I am facing problems to build the react native project for android, on iOS works fine.
    on the android simulator and android devices. I am facing those errors

    I am using the nodes-mobile-react-native version 0.5.0 because of issues in the latest version

    I have add the following as suggested in
    JaneaSystems/nodejs-mobile#60

            ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~'

    and not works

    I am using an MacIOS,

    Android studio Loggat output

    2021-05-14 12:45:43.311 7290-7691/com.mobileapp E/AndroidRuntime: FATAL EXCEPTION: Thread-2
    Process: com.mobileapp, PID: 7290
    java.lang.RuntimeException: Node assets copy failed
    at com.janeasystems.rn_nodejs_mobile.RNNodeJsMobileModule$1.run(RNNodeJsMobileModule.java:106)
    at java.lang.Thread.run(Thread.java:923)
    Caused by: java.io.FileNotFoundException: builtin_modules
    at android.content.res.AssetManager.nativeOpenAsset(Native Method)
    at android.content.res.AssetManager.open(AssetManager.java:957)
    at android.content.res.AssetManager.open(AssetManager.java:934)
    at com.janeasystems.rn_nodejs_mobile.RNNodeJsMobileModule.copyAsset(RNNodeJsMobileModule.java:431)
    at com.janeasystems.rn_nodejs_mobile.RNNodeJsMobileModule.copyAssetFolder(RNNodeJsMobileModule.java:420)
    at com.janeasystems.rn_nodejs_mobile.RNNodeJsMobileModule.copyNodeJsAssets(RNNodeJsMobileModule.java:388)
    at com.janeasystems.rn_nodejs_mobile.RNNodeJsMobileModule.access$100(RNNodeJsMobileModule.java:30)
    at com.janeasystems.rn_nodejs_mobile.RNNodeJsMobileModule$1.run(RNNodeJsMobileModule.java:103)
    at java.lang.Thread.run(Thread.java:923)

    RNNodeJsMobileModule

    line 388

    copyAssetFolder("node_modules", builtinModulesPath);

    the app crash on this line

    any idea how to fix it?