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

[Bug]: after upgrading to 0.76.4 i am getting error: cannot find symbol import com.facebook.react.bridge.JSIModuleProvider; #48175

Open
KarThikCh-dev opened this issue Dec 8, 2024 · 3 comments
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue.

Comments

@KarThikCh-dev
Copy link

KarThikCh-dev commented Dec 8, 2024

Description

after upgrading am getting below error

                                ^
  symbol:   class JSIModuleSpec
  location: package com.facebook.react.bridge
/Users/karthikch/Desktop/karthik/medesmart-app/android/app/src/main/java/iot/medesmart/app/newarchitecture/MainApplicationReactNativeHost.java:16: error: cannot find symbol
import com.facebook.react.bridge.JSIModuleType;
                                ^
  symbol:   class JSIModuleType
  location: package com.facebook.react.bridge

Steps to reproduce

npm react-native run-android

React Native Version

0.76.4

Affected Platforms

Runtime - Android, Build - MacOS

Output of npx react-native info

info Fetching system and libraries information...
(node:9221) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
System:
  OS: macOS 15.1.1
  CPU: (8) arm64 Apple M2
  Memory: 87.41 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.18.1
    path: ~/.nvm/versions/node/v20.18.1/bin/node
  Yarn:
    version: 1.22.22
    path: ~/.nvm/versions/node/v20.18.1/bin/yarn
  npm:
    version: 10.8.2
    path: ~/.nvm/versions/node/v20.18.1/bin/npm
  Watchman:
    version: 2024.12.02.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK: Not Found
  Android SDK:
    API Levels:
      - "31"
      - "34"
      - "35"
      - "35"
    Build Tools:
      - 30.0.2
      - 31.0.0
      - 34.0.0
      - 35.0.0
      - 36.0.0
    System Images:
      - android-35 | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23339.11.2421.12700392
  Xcode:
    version: /undefined
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.13
    path: /Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.4
    wanted: 0.76.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: false
  newArchEnabled: false

Stacktrace or Logs

^
  symbol:   class JSIModuleSpec
  location: package com.facebook.react.bridge
/Users/karthikch/Desktop/karthik/medesmart-app/android/app/src/main/java/iot/medesmart/app/newarchitecture/MainApplicationReactNativeHost.java:16: error: cannot find symbol
import com.facebook.react.bridge.JSIModuleType;
                                ^
  symbol:   class JSIModuleType
  location: package com.facebook.react.bridge

Reproducer

https://github.com/KarThikCh-dev/repo

Screenshots and Videos

No response

@react-native-bot react-native-bot added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Dec 8, 2024
@react-native-bot
Copy link
Collaborator

Warning

Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:

@cortinico
Copy link
Contributor

Can you share the content of: MainApplicationReactNativeHost.java ?

@omar-bear
Copy link

upgrade to 0.76.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue.
Projects
None yet
Development

No branches or pull requests

4 participants