Skip to content
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

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

Closed
rares-lupascu opened this issue Feb 17, 2023 · 6 comments
Labels
question Further information is requested

Comments

@rares-lupascu
Copy link

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
Copy link
Owner

jerson commented Nov 18, 2023

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

@jerson jerson added the question Further information is requested label Nov 18, 2023
@AlexanderEpolite
Copy link

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
Copy link

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

@jerson
Copy link
Owner

jerson commented Apr 5, 2024

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
Copy link
Owner

jerson commented Apr 5, 2024

tested in macos Intel chip, working fine

@jerson
Copy link
Owner

jerson commented May 23, 2024

added support for xcframework

@jerson jerson closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants