jerson / react-native-fast-openpgp

OpenPGP for react native made with golang for fast performance
https://www.npmjs.com/package/react-native-fast-openpgp
MIT License
45 stars 18 forks source link

TypeError: null is not an object (evaluating 'FastOpenPGPNativeModules.install') #84

Closed rares-lupascu closed 5 months ago

rares-lupascu commented 1 year ago

when running:

import OpenPGP, {Curve, Hash} from 'react-native-fast-openpgp';
OpenPGP.useJSI = true;

const ephemeral_private_key = await OpenPGP.generate({
  keyOptions: {
    curve: Curve.SECP256K1,
    hash: Hash.SHA256,
  },
});

i get:

{"error": [TypeError: null is not an object (evaluating 'FastOpenPGPNativeModules.install')]}

system info:

System:
    OS: macOS 13.1
    CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
    Memory: 174.49 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 14.21.2 - ~/.nvm/versions/node/v14.21.2/bin/node
    Yarn: 1.22.19 - ~/Projects/xxx/yyy/node_modules/.bin/yarn
    npm: 6.14.17 - ~/.nvm/versions/node/v14.21.2/bin/npm
    Watchman: 2022.10.03.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /Users/xxx/.rvm/gems/ruby-2.7.4/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
    Android SDK:
      Android NDK: 22.1.7171670
  IDEs:
    Android Studio: 2021.3 AI-213.7172.25.2113.9123335
    Xcode: 14.2/14C18 - /usr/bin/xcodebuild
  Languages:
    Java: javac 14 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.1.0 => 18.1.0 
    react-native: 0.68.0 => 0.68.0 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
jerson commented 12 months ago

Hi, not sure if this is still an issue, but, could you try with latest version

AlexanderEpolite commented 11 months ago

Hi, not sure if this is still an issue, but, could you try with latest version

@jerson Tried on latest and it is still doing it, same issue as OP

kalashshah commented 7 months ago

@jerson same issue popping up on the latest of versions of react-native and react-native-fast-openpgp

jerson commented 7 months ago

Hi @kalashshah I just tested in linux using the following package dependencies

"dependencies": {
    "react": "18.2.0",
    "react-native": "0.73.6",
    "react-native-fast-openpgp": "^2.7.2"
  }

and seems working fine, I don't have an M1 to test but tomorrow I can test in an Intel Mac

jerson commented 7 months ago

tested in macos Intel chip, working fine

jerson commented 5 months ago

added support for xcframework