-
-
Notifications
You must be signed in to change notification settings - Fork 972
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
TurboModuleRegistry.getEnforcing(...): 'RNGestureHandlerModule' could not be found #2847
Comments
Hi @lynajiang! I've just build your app on both, iOS simulator and real device and everything works fine (though there was an error that |
Yes. I am sure I properly cleaned the environment. I uninstalled and reinstalled a couple of times. If I were to comment out "import 'react-native-gesture-handler';" in both App.tsx and index.js as well as import { GestureHandlerRootView } from 'react-native-gesture-handler'; in App.tsx (and commenting out GestureHandlerRootView). I would not get any errors. This of course would make the bottomsheet component error since the Gesture Handler module is not sufficiently installed. |
In that case could you provide more information about this error? Like stack trace or full error message? |
Also, have you encountered this issue before? Did it happen after upgrading gesture handler (or react native) version? |
The full error message is:
And I have never used react-gesture-handler before. I had just installed the most up-to-date version of both react-native and react-gesture-handler packages. |
I also have pushed a cleaner version of the code. |
This comment was marked as outdated.
This comment was marked as outdated.
@anucreative Thank you! After downgrading gesture-handler to 2.15.0, it worked. |
Though downgrading may help, it is not a solution that we recommend. I will keep this issue open until we find out what causes that problem. |
I am also facing the same issue |
I am currently facing the same issue here. Is this beacuse dependency problem during instalation, because i use react 18 on my project.. Here is the log result upon installing rect-native-gesture-handler. Please note that after i user yard, the package installed in my node_module project yet i get the ERROR Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNGestureHandlerModule' could not be found. Here is the error upon installing react-native-gesture-handler npm ERR! A complete log of this run can be found in: /Users/patricktelnoni/.npm/_logs/2024-04-26T16_34_16_030Z-debug-0.log npm ERR! A complete log of this run can be found in: /Users/patricktelnoni/.npm/_logs/2024-04-26T16_34_16_030Z-debug-0.log |
I experience the same, tried downloading to 2.15.0 from 2.16.0. It is working when running npm start, but when I tried to convert it to aar and upload to a native android. this error shows up. I hope someone can help me on this. Gesture Handler version React Native version Platform Type
|
I have same problem |
same error |
1 similar comment
same error |
Note that this answer is aimed at ios. Then, go to Xcode and clean the project: |
For me, I had nx mono repo. And I have installed react-native-gesture-handler in my main package.json file (I was not using it directly but other package:react-navigation was using it). So, react-native-gesture-handler was missing in package.json of my mobile app directory. So, I added "react-native-gesture-handler": "*" in package.json inside my mobile directory, pod install in ios and then did a build run-ios. Then finally it worked. |
same error, If anyone know how to fix this please help. Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNGestureHandlerModule' could not be found. Verify that a module by this name is registered in the native binary.Bridgeless mode: true. TurboModule interop: true. Modules loaded: {"NativeModules":[],"TurboModules":["PlatformConstants","LogBox","SourceCode","AppState","BlobModule","WebSocketModule","DevSettings","DevToolsSettingsManager","Networking","Appearance","DevLoadingView","DeviceInfo","ImageLoader","SoundManager","IntentAndroid","DeviceEventManager","NativeAnimatedModule","I18nManager"],"NotFound":["NativePerformanceCxx","NativePerformanceObserverCxx","RedBox","BugReporting","HeadlessJsTaskSupport","LinkingManager","NativeReactNativeFeatureFlagsCxx","RNCSafeAreaContext","ReanimatedModule","RNGestureHandlerModule"]} |
I'm also having this issue after building the APK for my app, and react-native-gesture-handler is the cause of it |
Hi @lynajiang! Do you still experience this issue? If so, could you attach |
Also, to all who are currently seeing this issue. If it happens after upgrading |
@m-bert Yes, happened to me after Rn upgrade from |
Same here, upgrading from.... RN 0.66 to 0.74 (don't judge me !) and mostly following the upgrade helper. Can provide more info if needed. |
|
Any update here ? I'm still struggling with this issue (only on android) and it's just driving me crazy has it's preventing from releasing a huge update :( I've even tried to remove all reference to RNGestureHandler but somehow, the error sticks... even after clearing all caches... |
do you find any way ? my whatsapp +91 9213120419 |
I'm new posting comments on github, I don't know if theres any kind of rule to refer a link.. but I solved this error based on this issue resolution |
Description
In process of installing @gorhom/bottom-sheet package, I was installing the gesture-handler package. I followed all the steps of installation which included adding import statements (import 'react-native-gesture-handler') to both App.tsx and index.js. In app.tsx, GestureHandlerRootView wraps the contents. The code breaks even when I comment out the @gorhom/bottom-sheet package and components.
Of course in debugging this whole debacle,
Since this is very similar to #2749, I've tried all the solutions there. Nothing has worked.
Steps to reproduce
Snack or a link to a repository
https://github.com/lynajiang/Project-Lemon-Issue-Code.git
Gesture Handler version
2.16.0
React Native version
0.73.6
Platforms
iOS
JavaScript runtime
None
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
None
Device
Real device
Device model
iPhone 14 Pro iOS 17.4
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: