-
-
Notifications
You must be signed in to change notification settings - Fork 527
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: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[11], "react-native-screens").ScreenStack') #2115
Comments
Hey! 👋 It looks like you've omitted a few important sections from the issue template. Please complete Description section. |
Same, did you solve it? |
Noo, am still trying to upgrade the project but it's hectic by using
|
Hello, can we get any more context here? After what action this started to happen? Have done something particular like version upgrade or something? Looking at the error message it looks that something failed at the build stage as the It might be hard to help you w/o reproduction. I would start with removing all the android & gradle caches and rebuilding from scratch. Try removing |
|
here is the reproduction github-repo |
did you solve the problem?, I have the same problem, I tried everything? |
Hi everyone! Yeah, this looks like a missing |
|
I solved it just by using npm instead of yarn |
I'm having the same (or a similar) issue.
|
did you solve the issue?, I have the same problem. |
A workaround that proved effective for me was to "upgrade" my application to the most recent version. This involved generating a new application using I acknowledge that this solution may not be viable for everyone, but it's worth considering nonetheless. |
Started having the same problem couple days back. Looks like the latest version (3.31.1) has that problem. You have "react-native-screens": "^3.29.0", try without '^'. Seemed to fix it for me right now. |
Yes i did, refer to this reply here
|
I actually solved it by updating my Kotlin version. Since I'm using Java jdk 17, i had to specify Kotlin 7.3.3 in |
I was facing the same problem, but removing the '^' from "react-native-screens": "^3.29.0" in package.json file solved the issue. Thank you @kristensala for providing the solution. |
use this version "react-native-screens": "3.0.0", For me its working after downgrading it to 3.0.0. Thanks |
Works for me. |
Let me take a look on what might cause this error. Also, just a note from me - I would highly not recommend using |
I've just checked provided reproducer with a slight modifications:
Unfortunately, I still cannot reproduce this error. However, given the information that the error comes from
|
@tboba Yup. Android NDK is the problem. Solved. Thanks |
@kristensala kindly share with us your
|
@kabundege I removed the If/else around ndkVersion and just added the |
Hello 👋🏻 here come some conclusions The error:
Is indeed triggered by not present This issue is an oversight on our side as we should either change compatibility note or add some checks for RN version in runtime to avoid loading the dll into JVM. WorkaroundsIf it is feasible in your situation / application you can upgrade React Native to 0.71 or newer and this should resolve the issue. Another option is temporary downgrade and wait for fix on our side, however note that we are unsure yet on how to proceed with this issue (some technical constraints) and it might take a while. 3.29.0 should be the last unaffected version. |
@kristensala I've downgraded RN Screens to 3.29.0 and it fixed my problem for now. Thank you! |
## Description Fixes #2115 The `System.loadLibrary("rnscreens")` can throw an exception that inherits from the `Error` class instead of the `Exception` class.
Hey, we've found better way to handle this issue => should be solved with next release. |
This fixed my problem |
## Description Fixes software-mansion#2115 The `System.loadLibrary("rnscreens")` can throw an exception that inherits from the `Error` class instead of the `Exception` class.
Description
Error
Error: Requiring module "node_modules/react-native-screens/src/index.tsx", which threw an exception: Error: Exception in HostObject::get(propName:RNSModule): java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.app-MOOsrlTZxxpxhwDiZsIz2g==/base.apk"],nativeLibraryDirectories=[/data/app/com.app-MOOsrlTZxxpxhwDiZsIz2g==/lib/arm, /data/app/com.app-MOOsrlTZxxpxhwDiZsIz2g==/base.apk!/lib/armeabi-v7a, /system/lib, /product/lib]]] couldn't find "librnscreens.so"
Another Error
TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[11], "react-native-screens").ScreenStack')
Dependecies:
Steps to reproduce
npx react-native run-android
Snack or a link to a repository
here it is
Screens version
3.29.03.30.0+ - Since we've started using C++ layer from 3.30.0 version, original suggestion is probably incorrect. ~@tboba
React Native version
0.70.10
Platforms
Android
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: