react-native-fast-openpgp icon indicating copy to clipboard operation
react-native-fast-openpgp copied to clipboard

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

Open rares-lupascu opened this issue 2 years ago • 5 comments

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

rares-lupascu avatar Feb 17 '23 22:02 rares-lupascu

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

jerson avatar Nov 18 '23 16:11 jerson

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

AlexanderEpolite avatar Dec 17 '23 02:12 AlexanderEpolite

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

kalashshah avatar Apr 04 '24 11:04 kalashshah

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 avatar Apr 05 '24 04:04 jerson

tested in macos Intel chip, working fine

jerson avatar Apr 05 '24 14:04 jerson

added support for xcframework

jerson avatar May 23 '24 21:05 jerson