serenity-kit/react-native-libsodium

Error: no member named 'isBigInt' in 'facebook::jsi::Value'

nazariifenii opened this issue · 2 comments

Description

There is the issue appears on earlier React when running command:
npx react-native run-ios

/node_modules/react-native-libsodium/cpp/react-native-libsodium.cpp:48:20: error: no member named 'isBigInt' in 'facebook::jsi::Value'
        else if (v.isBigInt())
                 ~ ^
1 error generated.

Output of npx react-native info:

System:
    OS: macOS 13.0
    CPU: (10) arm64 Apple M2 Pro
    Memory: 79.44 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.0.0 - ~/.nvm/versions/node/v16.0.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.0.0/bin/yarn
    npm: 7.10.0 - ~/.nvm/versions/node/v16.0.0/bin/npm
    Watchman: 2023.08.07.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.12.0 - /Users/*****/.rvm/gems/ruby-2.7.5/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
    Android SDK:
      Android NDK: 22.1.7171670
  IDEs:
    Android Studio: 2022.3 AI-223.8836.35.2231.10406996
    Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.20 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.0.0 => 18.0.0 
    react-native: 0.69.6 => 0.69.6 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Hi @nazariifenii, seems like this JSI functionality wasn't exposed in older ReactNative version. Can you try upgrading to 0.71.6 or above and let me know if you still have the issue?

Hi, @nikgraf, sorry for the late response, yes, I'm using an older version of the RN, and, it looks like I can't use the library until I update the RN.